home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1990-03-14 | 40.1 KB | [TEXT/MPS ] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Wed Mar 14 10:22:46 1990, modified Wed Mar 14 10:22:46 1990, creator 'MPS ', type ASCII, 40475 bytes "tm-i386.h" , at 0x9e9b 382 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 74 6d 2d 69 33 38 | 36 2e 68 00 00 00 00 00 |..tm-i38|6.h.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 00 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 9e 1b 00 | 00 01 7e a2 24 12 46 a2 |........|..~.$.F.|
|00000060| 24 12 46 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |$.F.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 f5 77 00 00 |........|.....w..|
|00000080| 2f 2a 20 44 65 66 69 6e | 69 74 69 6f 6e 73 20 6f |/* Defin|itions o|
|00000090| 66 20 74 61 72 67 65 74 | 20 6d 61 63 68 69 6e 65 |f target| machine|
|000000a0| 20 66 6f 72 20 47 4e 55 | 20 63 6f 6d 70 69 6c 65 | for GNU| compile|
|000000b0| 72 20 66 6f 72 20 49 6e | 74 65 6c 20 38 30 33 38 |r for In|tel 8038|
|000000c0| 36 2e 0d 20 20 20 43 6f | 70 79 72 69 67 68 74 20 |6.. Co|pyright |
|000000d0| 28 43 29 20 31 39 38 38 | 20 46 72 65 65 20 53 6f |(C) 1988| Free So|
|000000e0| 66 74 77 61 72 65 20 46 | 6f 75 6e 64 61 74 69 6f |ftware F|oundatio|
|000000f0| 6e 2c 20 49 6e 63 2e 0d | 0d 54 68 69 73 20 66 69 |n, Inc..|.This fi|
|00000100| 6c 65 20 69 73 20 70 61 | 72 74 20 6f 66 20 47 4e |le is pa|rt of GN|
|00000110| 55 20 43 43 2e 0d 0d 47 | 4e 55 20 43 43 20 69 73 |U CC...G|NU CC is|
|00000120| 20 66 72 65 65 20 73 6f | 66 74 77 61 72 65 3b 20 | free so|ftware; |
|00000130| 79 6f 75 20 63 61 6e 20 | 72 65 64 69 73 74 72 69 |you can |redistri|
|00000140| 62 75 74 65 20 69 74 20 | 61 6e 64 2f 6f 72 20 6d |bute it |and/or m|
|00000150| 6f 64 69 66 79 0d 69 74 | 20 75 6e 64 65 72 20 74 |odify.it| under t|
|00000160| 68 65 20 74 65 72 6d 73 | 20 6f 66 20 74 68 65 20 |he terms| of the |
|00000170| 47 4e 55 20 47 65 6e 65 | 72 61 6c 20 50 75 62 6c |GNU Gene|ral Publ|
|00000180| 69 63 20 4c 69 63 65 6e | 73 65 20 61 73 20 70 75 |ic Licen|se as pu|
|00000190| 62 6c 69 73 68 65 64 20 | 62 79 0d 74 68 65 20 46 |blished |by.the F|
|000001a0| 72 65 65 20 53 6f 66 74 | 77 61 72 65 20 46 6f 75 |ree Soft|ware Fou|
|000001b0| 6e 64 61 74 69 6f 6e 3b | 20 65 69 74 68 65 72 20 |ndation;| either |
|000001c0| 76 65 72 73 69 6f 6e 20 | 31 2c 20 6f 72 20 28 61 |version |1, or (a|
|000001d0| 74 20 79 6f 75 72 20 6f | 70 74 69 6f 6e 29 0d 61 |t your o|ption).a|
|000001e0| 6e 79 20 6c 61 74 65 72 | 20 76 65 72 73 69 6f 6e |ny later| version|
|000001f0| 2e 0d 0d 47 4e 55 20 43 | 43 20 69 73 20 64 69 73 |...GNU C|C is dis|
|00000200| 74 72 69 62 75 74 65 64 | 20 69 6e 20 74 68 65 20 |tributed| in the |
|00000210| 68 6f 70 65 20 74 68 61 | 74 20 69 74 20 77 69 6c |hope tha|t it wil|
|00000220| 6c 20 62 65 20 75 73 65 | 66 75 6c 2c 0d 62 75 74 |l be use|ful,.but|
|00000230| 20 57 49 54 48 4f 55 54 | 20 41 4e 59 20 57 41 52 | WITHOUT| ANY WAR|
|00000240| 52 41 4e 54 59 3b 20 77 | 69 74 68 6f 75 74 20 65 |RANTY; w|ithout e|
|00000250| 76 65 6e 20 74 68 65 20 | 69 6d 70 6c 69 65 64 20 |ven the |implied |
|00000260| 77 61 72 72 61 6e 74 79 | 20 6f 66 0d 4d 45 52 43 |warranty| of.MERC|
|00000270| 48 41 4e 54 41 42 49 4c | 49 54 59 20 6f 72 20 46 |HANTABIL|ITY or F|
|00000280| 49 54 4e 45 53 53 20 46 | 4f 52 20 41 20 50 41 52 |ITNESS F|OR A PAR|
|00000290| 54 49 43 55 4c 41 52 20 | 50 55 52 50 4f 53 45 2e |TICULAR |PURPOSE.|
|000002a0| 20 20 53 65 65 20 74 68 | 65 0d 47 4e 55 20 47 65 | See th|e.GNU Ge|
|000002b0| 6e 65 72 61 6c 20 50 75 | 62 6c 69 63 20 4c 69 63 |neral Pu|blic Lic|
|000002c0| 65 6e 73 65 20 66 6f 72 | 20 6d 6f 72 65 20 64 65 |ense for| more de|
|000002d0| 74 61 69 6c 73 2e 0d 0d | 59 6f 75 20 73 68 6f 75 |tails...|You shou|
|000002e0| 6c 64 20 68 61 76 65 20 | 72 65 63 65 69 76 65 64 |ld have |received|
|000002f0| 20 61 20 63 6f 70 79 20 | 6f 66 20 74 68 65 20 47 | a copy |of the G|
|00000300| 4e 55 20 47 65 6e 65 72 | 61 6c 20 50 75 62 6c 69 |NU Gener|al Publi|
|00000310| 63 20 4c 69 63 65 6e 73 | 65 0d 61 6c 6f 6e 67 20 |c Licens|e.along |
|00000320| 77 69 74 68 20 47 4e 55 | 20 43 43 3b 20 73 65 65 |with GNU| CC; see|
|00000330| 20 74 68 65 20 66 69 6c | 65 20 43 4f 50 59 49 4e | the fil|e COPYIN|
|00000340| 47 2e 20 20 49 66 20 6e | 6f 74 2c 20 77 72 69 74 |G. If n|ot, writ|
|00000350| 65 20 74 6f 0d 74 68 65 | 20 46 72 65 65 20 53 6f |e to.the| Free So|
|00000360| 66 74 77 61 72 65 20 46 | 6f 75 6e 64 61 74 69 6f |ftware F|oundatio|
|00000370| 6e 2c 20 36 37 35 20 4d | 61 73 73 20 41 76 65 2c |n, 675 M|ass Ave,|
|00000380| 20 43 61 6d 62 72 69 64 | 67 65 2c 20 4d 41 20 30 | Cambrid|ge, MA 0|
|00000390| 32 31 33 39 2c 20 55 53 | 41 2e 20 20 2a 2f 0d 0d |2139, US|A. */..|
|000003a0| 0d 2f 2a 20 4e 6f 74 65 | 20 74 68 61 74 20 73 6f |./* Note| that so|
|000003b0| 6d 65 20 6f 74 68 65 72 | 20 74 6d 2d 20 66 69 6c |me other| tm- fil|
|000003c0| 65 73 20 69 6e 63 6c 75 | 64 65 20 74 68 69 73 20 |es inclu|de this |
|000003d0| 6f 6e 65 20 61 6e 64 20 | 74 68 65 6e 20 6f 76 65 |one and |then ove|
|000003e0| 72 72 69 64 65 0d 20 20 | 20 6d 61 6e 79 20 6f 66 |rride. | many of|
|000003f0| 20 74 68 65 20 64 65 66 | 69 6e 69 74 69 6f 6e 73 | the def|initions|
|00000400| 20 74 68 61 74 20 72 65 | 6c 61 74 65 20 74 6f 20 | that re|late to |
|00000410| 61 73 73 65 6d 62 6c 65 | 72 20 73 79 6e 74 61 78 |assemble|r syntax|
|00000420| 2e 20 20 2a 2f 0d 0d 2f | 2a 20 4e 61 6d 65 73 20 |. */../|* Names |
|00000430| 74 6f 20 70 72 65 64 65 | 66 69 6e 65 20 69 6e 20 |to prede|fine in |
|00000440| 74 68 65 20 70 72 65 70 | 72 6f 63 65 73 73 6f 72 |the prep|rocessor|
|00000450| 20 66 6f 72 20 74 68 69 | 73 20 74 61 72 67 65 74 | for thi|s target|
|00000460| 20 6d 61 63 68 69 6e 65 | 2e 20 20 2a 2f 0d 0d 2f | machine|. */../|
|00000470| 2a 20 74 68 65 20 66 69 | 6c 65 20 74 6d 2d 63 6f |* the fi|le tm-co|
|00000480| 6d 70 61 71 2e 68 20 69 | 6e 63 6c 75 64 65 73 20 |mpaq.h i|ncludes |
|00000490| 74 68 69 73 20 66 69 6c | 65 20 2a 2f 0d 0d 0d 23 |this fil|e */...#|
|000004a0| 64 65 66 69 6e 65 20 49 | 33 38 36 20 31 0d 0d 2f |define I|386 1../|
|000004b0| 2a 20 52 75 6e 2d 74 69 | 6d 65 20 63 6f 6d 70 69 |* Run-ti|me compi|
|000004c0| 6c 61 74 69 6f 6e 20 70 | 61 72 61 6d 65 74 65 72 |lation p|arameter|
|000004d0| 73 20 73 65 6c 65 63 74 | 69 6e 67 20 64 69 66 66 |s select|ing diff|
|000004e0| 65 72 65 6e 74 20 68 61 | 72 64 77 61 72 65 20 73 |erent ha|rdware s|
|000004f0| 75 62 73 65 74 73 2e 20 | 20 2a 2f 0d 0d 65 78 74 |ubsets. | */..ext|
|00000500| 65 72 6e 20 69 6e 74 20 | 74 61 72 67 65 74 5f 66 |ern int |target_f|
|00000510| 6c 61 67 73 3b 0d 0d 2f | 2a 20 4d 61 63 72 6f 73 |lags;../|* Macros|
|00000520| 20 75 73 65 64 20 69 6e | 20 74 68 65 20 6d 61 63 | used in| the mac|
|00000530| 68 69 6e 65 20 64 65 73 | 63 72 69 70 74 69 6f 6e |hine des|cription|
|00000540| 20 74 6f 20 74 65 73 74 | 20 74 68 65 20 66 6c 61 | to test| the fla|
|00000550| 67 73 2e 20 20 2a 2f 0d | 0d 2f 2a 20 43 6f 6d 70 |gs. */.|./* Comp|
|00000560| 69 6c 65 20 38 30 33 38 | 37 20 69 6e 73 6e 73 20 |ile 8038|7 insns |
|00000570| 66 6f 72 20 66 6c 6f 61 | 74 69 6e 67 20 70 6f 69 |for floa|ting poi|
|00000580| 6e 74 20 28 6e 6f 74 20 | 6c 69 62 72 61 72 79 20 |nt (not |library |
|00000590| 63 61 6c 6c 73 29 2e 20 | 20 2a 2f 0d 23 64 65 66 |calls). | */.#def|
|000005a0| 69 6e 65 20 54 41 52 47 | 45 54 5f 38 30 33 38 37 |ine TARG|ET_80387|
|000005b0| 20 28 74 61 72 67 65 74 | 5f 66 6c 61 67 73 20 26 | (target|_flags &|
|000005c0| 20 31 29 0d 2f 2a 20 43 | 6f 6d 70 69 6c 65 20 75 | 1)./* C|ompile u|
|000005d0| 73 69 6e 67 20 72 65 74 | 20 69 6e 73 6e 20 74 68 |sing ret| insn th|
|000005e0| 61 74 20 70 6f 70 73 20 | 61 72 67 73 2e 0d 20 20 |at pops |args.. |
|000005f0| 20 54 68 69 73 20 77 69 | 6c 6c 20 6e 6f 74 20 77 | This wi|ll not w|
|00000600| 6f 72 6b 20 75 6e 6c 65 | 73 73 20 79 6f 75 20 75 |ork unle|ss you u|
|00000610| 73 65 20 70 72 6f 74 6f | 74 79 70 65 73 20 61 74 |se proto|types at|
|00000620| 20 6c 65 61 73 74 0d 20 | 20 20 66 6f 72 20 61 6c | least. | for al|
|00000630| 6c 20 66 75 6e 63 74 69 | 6f 6e 73 20 74 68 61 74 |l functi|ons that|
|00000640| 20 63 61 6e 20 74 61 6b | 65 20 76 61 72 79 69 6e | can tak|e varyin|
|00000650| 67 20 6e 75 6d 62 65 72 | 73 20 6f 66 20 61 72 67 |g number|s of arg|
|00000660| 73 2e 20 20 2a 2f 20 20 | 0d 23 64 65 66 69 6e 65 |s. */ |.#define|
|00000670| 20 54 41 52 47 45 54 5f | 52 54 44 20 28 74 61 72 | TARGET_|RTD (tar|
|00000680| 67 65 74 5f 66 6c 61 67 | 73 20 26 20 38 29 0d 2f |get_flag|s & 8)./|
|00000690| 2a 20 43 6f 6d 70 69 6c | 65 20 70 61 73 73 69 6e |* Compil|e passin|
|000006a0| 67 20 66 69 72 73 74 20 | 74 77 6f 20 61 72 67 73 |g first |two args|
|000006b0| 20 69 6e 20 72 65 67 73 | 20 30 20 61 6e 64 20 31 | in regs| 0 and 1|
|000006c0| 2e 0d 20 20 20 54 68 69 | 73 20 65 78 69 73 74 73 |.. Thi|s exists|
|000006d0| 20 6f 6e 6c 79 20 74 6f | 20 74 65 73 74 20 63 6f | only to| test co|
|000006e0| 6d 70 69 6c 65 72 20 66 | 65 61 74 75 72 65 73 20 |mpiler f|eatures |
|000006f0| 74 68 61 74 20 77 69 6c | 6c 0d 20 20 20 62 65 20 |that wil|l. be |
|00000700| 6e 65 65 64 65 64 20 66 | 6f 72 20 52 49 53 43 20 |needed f|or RISC |
|00000710| 63 68 69 70 73 2e 20 20 | 49 74 20 69 73 20 6e 6f |chips. |It is no|
|00000720| 74 20 75 73 61 62 6c 65 | 0d 20 20 20 61 6e 64 20 |t usable|. and |
|00000730| 69 73 20 6e 6f 74 20 69 | 6e 74 65 6e 64 65 64 20 |is not i|ntended |
|00000740| 74 6f 20 62 65 20 75 73 | 61 62 6c 65 20 6f 6e 20 |to be us|able on |
|00000750| 74 68 69 73 20 63 70 75 | 2e 20 20 2a 2f 0d 23 64 |this cpu|. */.#d|
|00000760| 65 66 69 6e 65 20 54 41 | 52 47 45 54 5f 52 45 47 |efine TA|RGET_REG|
|00000770| 50 41 52 4d 20 28 74 61 | 72 67 65 74 5f 66 6c 61 |PARM (ta|rget_fla|
|00000780| 67 73 20 26 20 30 32 30 | 29 0d 0d 2f 2a 20 4d 61 |gs & 020|)../* Ma|
|00000790| 63 72 6f 20 74 6f 20 64 | 65 66 69 6e 65 20 74 61 |cro to d|efine ta|
|000007a0| 62 6c 65 73 20 75 73 65 | 64 20 74 6f 20 73 65 74 |bles use|d to set|
|000007b0| 20 74 68 65 20 66 6c 61 | 67 73 2e 0d 20 20 20 54 | the fla|gs.. T|
|000007c0| 68 69 73 20 69 73 20 61 | 20 6c 69 73 74 20 69 6e |his is a| list in|
|000007d0| 20 62 72 61 63 65 73 20 | 6f 66 20 70 61 69 72 73 | braces |of pairs|
|000007e0| 20 69 6e 20 62 72 61 63 | 65 73 2c 0d 20 20 20 65 | in brac|es,. e|
|000007f0| 61 63 68 20 70 61 69 72 | 20 62 65 69 6e 67 20 7b |ach pair| being {|
|00000800| 20 22 4e 41 4d 45 22 2c | 20 56 41 4c 55 45 20 7d | "NAME",| VALUE }|
|00000810| 0d 20 20 20 77 68 65 72 | 65 20 56 41 4c 55 45 20 |. wher|e VALUE |
|00000820| 69 73 20 74 68 65 20 62 | 69 74 73 20 74 6f 20 73 |is the b|its to s|
|00000830| 65 74 20 6f 72 20 6d 69 | 6e 75 73 20 74 68 65 20 |et or mi|nus the |
|00000840| 62 69 74 73 20 74 6f 20 | 63 6c 65 61 72 2e 0d 20 |bits to |clear.. |
|00000850| 20 20 41 6e 20 65 6d 70 | 74 79 20 73 74 72 69 6e | An emp|ty strin|
|00000860| 67 20 4e 41 4d 45 20 69 | 73 20 75 73 65 64 20 74 |g NAME i|s used t|
|00000870| 6f 20 69 64 65 6e 74 69 | 66 79 20 74 68 65 20 64 |o identi|fy the d|
|00000880| 65 66 61 75 6c 74 20 56 | 41 4c 55 45 2e 20 20 2a |efault V|ALUE. *|
|00000890| 2f 0d 0d 23 64 65 66 69 | 6e 65 20 54 41 52 47 45 |/..#defi|ne TARGE|
|000008a0| 54 5f 53 57 49 54 43 48 | 45 53 20 20 5c 0d 20 20 |T_SWITCH|ES \. |
|000008b0| 7b 20 7b 20 22 38 30 33 | 38 37 22 2c 20 31 7d 2c |{ { "803|87", 1},|
|000008c0| 09 09 09 09 5c 0d 20 20 | 20 20 7b 20 22 73 6f 66 |....\. | { "sof|
|000008d0| 74 2d 66 6c 6f 61 74 22 | 2c 20 2d 31 7d 2c 09 09 |t-float"|, -1},..|
|000008e0| 09 5c 0d 20 20 20 20 7b | 20 22 72 74 64 22 2c 20 |.\. {| "rtd", |
|000008f0| 38 7d 2c 09 09 09 09 5c | 0d 20 20 20 20 7b 20 22 |8},....\|. { "|
|00000900| 6e 6f 72 74 64 22 2c 20 | 2d 38 7d 2c 09 09 09 09 |nortd", |-8},....|
|00000910| 5c 0d 20 20 20 20 7b 20 | 22 72 65 67 70 61 72 6d |\. { |"regparm|
|00000920| 22 2c 20 30 32 30 7d 2c | 09 09 09 09 5c 0d 20 20 |", 020},|....\. |
|00000930| 20 20 7b 20 22 6e 6f 72 | 65 67 70 61 72 6d 22 2c | { "nor|egparm",|
|00000940| 20 2d 30 32 30 7d 2c 09 | 09 09 5c 0d 20 20 20 20 | -020},.|..\. |
|00000950| 7b 20 22 22 2c 20 54 41 | 52 47 45 54 5f 44 45 46 |{ "", TA|RGET_DEF|
|00000960| 41 55 4c 54 7d 7d 0d 0d | 2f 2a 20 54 41 52 47 45 |AULT}}..|/* TARGE|
|00000970| 54 5f 44 45 46 41 55 4c | 54 20 69 73 20 64 65 66 |T_DEFAUL|T is def|
|00000980| 69 6e 65 64 20 69 6e 20 | 74 6d 2d 63 6f 6d 70 61 |ined in |tm-compa|
|00000990| 71 2e 68 2c 20 65 74 63 | 2e 20 20 2a 2f 0d 0c 0d |q.h, etc|. */...|
|000009a0| 2f 2a 20 74 61 72 67 65 | 74 20 6d 61 63 68 69 6e |/* targe|t machin|
|000009b0| 65 20 73 74 6f 72 61 67 | 65 20 6c 61 79 6f 75 74 |e storag|e layout|
|000009c0| 20 2a 2f 0d 0d 2f 2a 20 | 44 65 66 69 6e 65 20 74 | */../* |Define t|
|000009d0| 68 69 73 20 69 66 20 6d | 6f 73 74 20 73 69 67 6e |his if m|ost sign|
|000009e0| 69 66 69 63 61 6e 74 20 | 62 79 74 65 20 6f 66 20 |ificant |byte of |
|000009f0| 61 20 77 6f 72 64 20 69 | 73 20 74 68 65 20 6c 6f |a word i|s the lo|
|00000a00| 77 65 73 74 20 6e 75 6d | 62 65 72 65 64 2e 20 20 |west num|bered. |
|00000a10| 2a 2f 0d 2f 2a 20 54 68 | 61 74 20 69 73 20 74 72 |*/./* Th|at is tr|
|00000a20| 75 65 20 6f 6e 20 74 68 | 65 20 38 30 33 38 36 2e |ue on th|e 80386.|
|00000a30| 20 20 2a 2f 0d 0d 2f 2a | 20 23 64 65 66 69 6e 65 | */../*| #define|
|00000a40| 20 42 49 54 53 5f 42 49 | 47 5f 45 4e 44 49 41 4e | BITS_BI|G_ENDIAN|
|00000a50| 20 2a 2f 0d 0d 2f 2a 20 | 44 65 66 69 6e 65 20 74 | */../* |Define t|
|00000a60| 68 69 73 20 69 66 20 6d | 6f 73 74 20 73 69 67 6e |his if m|ost sign|
|00000a70| 69 66 69 63 61 6e 74 20 | 62 79 74 65 20 6f 66 20 |ificant |byte of |
|00000a80| 61 20 77 6f 72 64 20 69 | 73 20 74 68 65 20 6c 6f |a word i|s the lo|
|00000a90| 77 65 73 74 20 6e 75 6d | 62 65 72 65 64 2e 20 20 |west num|bered. |
|00000aa0| 2a 2f 0d 2f 2a 20 54 68 | 61 74 20 69 73 20 6e 6f |*/./* Th|at is no|
|00000ab0| 74 20 74 72 75 65 20 6f | 6e 20 74 68 65 20 38 30 |t true o|n the 80|
|00000ac0| 33 38 36 2e 20 20 2a 2f | 0d 2f 2a 20 23 64 65 66 |386. */|./* #def|
|00000ad0| 69 6e 65 20 42 59 54 45 | 53 5f 42 49 47 5f 45 4e |ine BYTE|S_BIG_EN|
|00000ae0| 44 49 41 4e 20 2a 2f 0d | 0d 2f 2a 20 44 65 66 69 |DIAN */.|./* Defi|
|00000af0| 6e 65 20 74 68 69 73 20 | 69 66 20 6d 6f 73 74 20 |ne this |if most |
|00000b00| 73 69 67 6e 69 66 69 63 | 61 6e 74 20 77 6f 72 64 |signific|ant word|
|00000b10| 20 6f 66 20 61 20 6d 75 | 6c 74 69 77 6f 72 64 20 | of a mu|ltiword |
|00000b20| 6e 75 6d 62 65 72 20 69 | 73 20 6e 75 6d 62 65 72 |number i|s number|
|00000b30| 65 64 2e 20 20 2a 2f 0d | 2f 2a 20 4e 6f 74 20 74 |ed. */.|/* Not t|
|00000b40| 72 75 65 20 66 6f 72 20 | 38 30 33 38 36 20 2a 2f |rue for |80386 */|
|00000b50| 0d 2f 2a 20 23 64 65 66 | 69 6e 65 20 57 4f 52 44 |./* #def|ine WORD|
|00000b60| 53 5f 42 49 47 5f 45 4e | 44 49 41 4e 20 2a 2f 0d |S_BIG_EN|DIAN */.|
|00000b70| 0d 2f 2a 20 6e 75 6d 62 | 65 72 20 6f 66 20 62 69 |./* numb|er of bi|
|00000b80| 74 73 20 69 6e 20 61 6e | 20 61 64 64 72 65 73 73 |ts in an| address|
|00000b90| 69 62 6c 65 20 73 74 6f | 72 61 67 65 20 75 6e 69 |ible sto|rage uni|
|00000ba0| 74 20 2a 2f 0d 23 64 65 | 66 69 6e 65 20 42 49 54 |t */.#de|fine BIT|
|00000bb0| 53 5f 50 45 52 5f 55 4e | 49 54 20 38 0d 0d 2f 2a |S_PER_UN|IT 8../*|
|00000bc0| 20 57 69 64 74 68 20 69 | 6e 20 62 69 74 73 20 6f | Width i|n bits o|
|00000bd0| 66 20 61 20 22 77 6f 72 | 64 22 2c 20 77 68 69 63 |f a "wor|d", whic|
|00000be0| 68 20 69 73 20 74 68 65 | 20 63 6f 6e 74 65 6e 74 |h is the| content|
|00000bf0| 73 20 6f 66 20 61 20 6d | 61 63 68 69 6e 65 20 72 |s of a m|achine r|
|00000c00| 65 67 69 73 74 65 72 2e | 0d 20 20 20 4e 6f 74 65 |egister.|. Note|
|00000c10| 20 74 68 61 74 20 74 68 | 69 73 20 69 73 20 6e 6f | that th|is is no|
|00000c20| 74 20 6e 65 63 65 73 73 | 61 72 69 6c 79 20 74 68 |t necess|arily th|
|00000c30| 65 20 77 69 64 74 68 20 | 6f 66 20 64 61 74 61 20 |e width |of data |
|00000c40| 74 79 70 65 20 60 69 6e | 74 27 3b 0d 20 20 20 69 |type `in|t';. i|
|00000c50| 66 20 75 73 69 6e 67 20 | 31 36 2d 62 69 74 20 69 |f using |16-bit i|
|00000c60| 6e 74 73 20 6f 6e 20 61 | 20 38 30 33 38 36 2c 20 |nts on a| 80386, |
|00000c70| 74 68 69 73 20 77 6f 75 | 6c 64 20 73 74 69 6c 6c |this wou|ld still|
|00000c80| 20 62 65 20 33 32 2e 0d | 20 20 20 42 75 74 20 6f | be 32..| But o|
|00000c90| 6e 20 61 20 6d 61 63 68 | 69 6e 65 20 77 69 74 68 |n a mach|ine with|
|00000ca0| 20 31 36 2d 62 69 74 20 | 72 65 67 69 73 74 65 72 | 16-bit |register|
|00000cb0| 73 2c 20 74 68 69 73 20 | 77 6f 75 6c 64 20 62 65 |s, this |would be|
|00000cc0| 20 31 36 2e 20 20 2a 2f | 0d 23 64 65 66 69 6e 65 | 16. */|.#define|
|00000cd0| 20 42 49 54 53 5f 50 45 | 52 5f 57 4f 52 44 20 33 | BITS_PE|R_WORD 3|
|00000ce0| 32 0d 0d 2f 2a 20 57 69 | 64 74 68 20 6f 66 20 61 |2../* Wi|dth of a|
|00000cf0| 20 77 6f 72 64 2c 20 69 | 6e 20 75 6e 69 74 73 20 | word, i|n units |
|00000d00| 28 62 79 74 65 73 29 2e | 20 20 2a 2f 0d 23 64 65 |(bytes).| */.#de|
|00000d10| 66 69 6e 65 20 55 4e 49 | 54 53 5f 50 45 52 5f 57 |fine UNI|TS_PER_W|
|00000d20| 4f 52 44 20 34 0d 0d 2f | 2a 20 57 69 64 74 68 20 |ORD 4../|* Width |
|00000d30| 69 6e 20 62 69 74 73 20 | 6f 66 20 61 20 70 6f 69 |in bits |of a poi|
|00000d40| 6e 74 65 72 2e 0d 20 20 | 20 53 65 65 20 61 6c 73 |nter.. | See als|
|00000d50| 6f 20 74 68 65 20 6d 61 | 63 72 6f 20 60 50 6d 6f |o the ma|cro `Pmo|
|00000d60| 64 65 27 20 64 65 66 69 | 6e 65 64 20 62 65 6c 6f |de' defi|ned belo|
|00000d70| 77 2e 20 20 2a 2f 0d 23 | 64 65 66 69 6e 65 20 50 |w. */.#|define P|
|00000d80| 4f 49 4e 54 45 52 5f 53 | 49 5a 45 20 33 32 0d 0d |OINTER_S|IZE 32..|
|00000d90| 2f 2a 20 41 6c 6c 6f 63 | 61 74 69 6f 6e 20 62 6f |/* Alloc|ation bo|
|00000da0| 75 6e 64 61 72 79 20 28 | 69 6e 20 2a 62 69 74 73 |undary (|in *bits|
|00000db0| 2a 29 20 66 6f 72 20 73 | 74 6f 72 69 6e 67 20 70 |*) for s|toring p|
|00000dc0| 6f 69 6e 74 65 72 73 20 | 69 6e 20 6d 65 6d 6f 72 |ointers |in memor|
|00000dd0| 79 2e 20 20 2a 2f 0d 23 | 64 65 66 69 6e 65 20 50 |y. */.#|define P|
|00000de0| 4f 49 4e 54 45 52 5f 42 | 4f 55 4e 44 41 52 59 20 |OINTER_B|OUNDARY |
|00000df0| 33 32 0d 0d 2f 2a 20 41 | 6c 6c 6f 63 61 74 69 6f |32../* A|llocatio|
|00000e00| 6e 20 62 6f 75 6e 64 61 | 72 79 20 28 69 6e 20 2a |n bounda|ry (in *|
|00000e10| 62 69 74 73 2a 29 20 66 | 6f 72 20 73 74 6f 72 69 |bits*) f|or stori|
|00000e20| 6e 67 20 61 72 67 75 6d | 65 6e 74 73 20 69 6e 20 |ng argum|ents in |
|00000e30| 61 72 67 75 6d 65 6e 74 | 20 6c 69 73 74 2e 20 20 |argument| list. |
|00000e40| 2a 2f 0d 23 64 65 66 69 | 6e 65 20 50 41 52 4d 5f |*/.#defi|ne PARM_|
|00000e50| 42 4f 55 4e 44 41 52 59 | 20 33 32 0d 0d 2f 2a 20 |BOUNDARY| 32../* |
|00000e60| 42 6f 75 6e 64 61 72 79 | 20 28 69 6e 20 2a 62 69 |Boundary| (in *bi|
|00000e70| 74 73 2a 29 20 6f 6e 20 | 77 68 69 63 68 20 73 74 |ts*) on |which st|
|00000e80| 61 63 6b 20 70 6f 69 6e | 74 65 72 20 73 68 6f 75 |ack poin|ter shou|
|00000e90| 6c 64 20 62 65 20 61 6c | 69 67 6e 65 64 2e 20 20 |ld be al|igned. |
|00000ea0| 2a 2f 0d 23 64 65 66 69 | 6e 65 20 53 54 41 43 4b |*/.#defi|ne STACK|
|00000eb0| 5f 42 4f 55 4e 44 41 52 | 59 20 33 32 0d 0d 2f 2a |_BOUNDAR|Y 32../*|
|00000ec0| 20 41 6c 6c 6f 63 61 74 | 69 6f 6e 20 62 6f 75 6e | Allocat|ion boun|
|00000ed0| 64 61 72 79 20 28 69 6e | 20 2a 62 69 74 73 2a 29 |dary (in| *bits*)|
|00000ee0| 20 66 6f 72 20 74 68 65 | 20 63 6f 64 65 20 6f 66 | for the| code of|
|00000ef0| 20 61 20 66 75 6e 63 74 | 69 6f 6e 2e 20 20 2a 2f | a funct|ion. */|
|00000f00| 0d 23 64 65 66 69 6e 65 | 20 46 55 4e 43 54 49 4f |.#define| FUNCTIO|
|00000f10| 4e 5f 42 4f 55 4e 44 41 | 52 59 20 33 32 0d 0d 2f |N_BOUNDA|RY 32../|
|00000f20| 2a 20 41 6c 69 67 6e 6d | 65 6e 74 20 6f 66 20 66 |* Alignm|ent of f|
|00000f30| 69 65 6c 64 20 61 66 74 | 65 72 20 60 69 6e 74 20 |ield aft|er `int |
|00000f40| 3a 20 30 27 20 69 6e 20 | 61 20 73 74 72 75 63 74 |: 0' in |a struct|
|00000f50| 75 72 65 2e 20 2a 2f 0d | 0d 23 64 65 66 69 6e 65 |ure. */.|.#define|
|00000f60| 20 45 4d 50 54 59 5f 46 | 49 45 4c 44 5f 42 4f 55 | EMPTY_F|IELD_BOU|
|00000f70| 4e 44 41 52 59 20 33 32 | 0d 0d 2f 2a 20 54 68 65 |NDARY 32|../* The|
|00000f80| 72 65 20 69 73 20 6e 6f | 20 70 6f 69 6e 74 20 61 |re is no| point a|
|00000f90| 6c 69 67 6e 69 6e 67 20 | 61 6e 79 74 68 69 6e 67 |ligning |anything|
|00000fa0| 20 74 6f 20 61 20 72 6f | 75 6e 64 65 72 20 62 6f | to a ro|under bo|
|00000fb0| 75 6e 64 61 72 79 20 74 | 68 61 6e 20 74 68 69 73 |undary t|han this|
|00000fc0| 2e 20 2a 2f 0d 2f 2a 20 | 53 6f 6d 65 20 73 74 72 |. */./* |Some str|
|00000fd0| 75 63 74 75 72 65 73 20 | 69 6e 20 74 68 65 20 41 |uctures |in the A|
|00000fe0| 54 54 20 6c 69 62 72 61 | 72 69 65 73 20 61 72 65 |TT libra|ries are|
|00000ff0| 20 61 73 73 75 6d 65 64 | 20 74 6f 20 72 6f 75 6e | assumed| to roun|
|00001000| 64 20 75 70 20 66 72 6f | 6d 20 31 36 20 74 6f 20 |d up fro|m 16 to |
|00001010| 31 38 0d 20 20 20 62 79 | 74 65 73 2c 20 66 6f 72 |18. by|tes, for|
|00001020| 20 65 78 61 6d 70 6c 65 | 20 74 68 65 20 5f 69 6f | example| the _io|
|00001030| 5f 62 75 66 20 2a 2f 0d | 23 64 65 66 69 6e 65 20 |_buf */.|#define |
|00001040| 42 49 47 47 45 53 54 5f | 41 4c 49 47 4e 4d 45 4e |BIGGEST_|ALIGNMEN|
|00001050| 54 20 33 32 0d 0d 2f 2a | 20 44 65 66 69 6e 65 20 |T 32../*| Define |
|00001060| 74 68 69 73 20 69 66 20 | 6d 6f 76 65 20 69 6e 73 |this if |move ins|
|00001070| 74 72 75 63 74 69 6f 6e | 73 20 77 69 6c 6c 20 61 |truction|s will a|
|00001080| 63 74 75 61 6c 6c 79 20 | 66 61 69 6c 20 74 6f 20 |ctually |fail to |
|00001090| 77 6f 72 6b 0d 20 20 20 | 77 68 65 6e 20 67 69 76 |work. |when giv|
|000010a0| 65 6e 20 75 6e 61 6c 69 | 67 6e 65 64 20 64 61 74 |en unali|gned dat|
|000010b0| 61 2e 20 20 2a 2f 0d 2f | 2a 20 23 64 65 66 69 6e |a. */./|* #defin|
|000010c0| 65 20 53 54 52 49 43 54 | 5f 41 4c 49 47 4e 4d 45 |e STRICT|_ALIGNME|
|000010d0| 4e 54 20 2a 2f 0d 0c 0d | 2f 2a 20 53 74 61 6e 64 |NT */...|/* Stand|
|000010e0| 61 72 64 20 72 65 67 69 | 73 74 65 72 20 75 73 61 |ard regi|ster usa|
|000010f0| 67 65 2e 20 20 2a 2f 0d | 0d 2f 2a 20 4e 75 6d 62 |ge. */.|./* Numb|
|00001100| 65 72 20 6f 66 20 61 63 | 74 75 61 6c 20 68 61 72 |er of ac|tual har|
|00001110| 64 77 61 72 65 20 72 65 | 67 69 73 74 65 72 73 2e |dware re|gisters.|
|00001120| 0d 20 20 20 54 68 65 20 | 68 61 72 64 77 61 72 65 |. The |hardware|
|00001130| 20 72 65 67 69 73 74 65 | 72 73 20 61 72 65 20 61 | registe|rs are a|
|00001140| 73 73 69 67 6e 65 64 20 | 6e 75 6d 62 65 72 73 20 |ssigned |numbers |
|00001150| 66 6f 72 20 74 68 65 20 | 63 6f 6d 70 69 6c 65 72 |for the |compiler|
|00001160| 0d 20 20 20 66 72 6f 6d | 20 30 20 74 6f 20 6a 75 |. from| 0 to ju|
|00001170| 73 74 20 62 65 6c 6f 77 | 20 46 49 52 53 54 5f 50 |st below| FIRST_P|
|00001180| 53 45 55 44 4f 5f 52 45 | 47 49 53 54 45 52 2e 0d |SEUDO_RE|GISTER..|
|00001190| 20 20 20 41 6c 6c 20 72 | 65 67 69 73 74 65 72 73 | All r|egisters|
|000011a0| 20 74 68 61 74 20 74 68 | 65 20 63 6f 6d 70 69 6c | that th|e compil|
|000011b0| 65 72 20 6b 6e 6f 77 73 | 20 61 62 6f 75 74 20 6d |er knows| about m|
|000011c0| 75 73 74 20 62 65 20 67 | 69 76 65 6e 20 6e 75 6d |ust be g|iven num|
|000011d0| 62 65 72 73 2c 0d 20 20 | 20 65 76 65 6e 20 74 68 |bers,. | even th|
|000011e0| 6f 73 65 20 74 68 61 74 | 20 61 72 65 20 6e 6f 74 |ose that| are not|
|000011f0| 20 6e 6f 72 6d 61 6c 6c | 79 20 63 6f 6e 73 69 64 | normall|y consid|
|00001200| 65 72 65 64 20 67 65 6e | 65 72 61 6c 20 72 65 67 |ered gen|eral reg|
|00001210| 69 73 74 65 72 73 2e 0d | 20 20 20 49 6e 20 74 68 |isters..| In th|
|00001220| 65 20 38 30 33 38 37 20 | 77 65 20 67 69 76 65 20 |e 80387 |we give |
|00001230| 74 68 65 20 38 20 67 65 | 6e 65 72 61 6c 20 70 75 |the 8 ge|neral pu|
|00001240| 72 70 6f 73 65 20 72 65 | 67 69 73 74 65 72 73 20 |rpose re|gisters |
|00001250| 74 68 65 20 6e 75 6d 62 | 65 72 73 20 30 2d 37 2c |the numb|ers 0-7,|
|00001260| 0d 20 20 20 77 65 20 61 | 73 73 69 67 6e 20 36 20 |. we a|ssign 6 |
|00001270| 6e 75 6d 62 65 72 73 20 | 66 6f 72 20 66 6c 6f 61 |numbers |for floa|
|00001280| 74 69 6e 67 20 70 6f 69 | 6e 74 20 72 65 67 69 73 |ting poi|nt regis|
|00001290| 74 65 72 73 20 38 2d 31 | 33 2c 0d 20 20 20 4e 6f |ters 8-1|3,. No|
|000012a0| 74 65 20 74 68 61 74 20 | 72 65 67 69 73 74 65 72 |te that |register|
|000012b0| 73 20 30 2d 37 20 63 61 | 6e 20 62 65 20 61 63 63 |s 0-7 ca|n be acc|
|000012c0| 65 73 73 65 64 20 61 73 | 20 61 20 20 73 68 6f 72 |essed as| a shor|
|000012d0| 74 20 6f 72 20 69 6e 74 | 2c 0d 20 20 20 77 68 69 |t or int|,. whi|
|000012e0| 6c 65 20 6f 6e 6c 79 20 | 30 2d 33 20 6d 61 79 20 |le only |0-3 may |
|000012f0| 62 65 20 75 73 65 64 20 | 77 69 74 68 20 6d 6f 76 |be used |with mov|
|00001300| 20 62 79 74 65 20 69 6e | 73 74 72 75 63 74 69 6f | byte in|structio|
|00001310| 6e 73 2e 0d 2a 2f 0d 23 | 64 65 66 69 6e 65 20 46 |ns..*/.#|define F|
|00001320| 49 52 53 54 5f 50 53 45 | 55 44 4f 5f 52 45 47 49 |IRST_PSE|UDO_REGI|
|00001330| 53 54 45 52 20 31 30 0d | 0d 2f 2a 20 31 20 66 6f |STER 10.|./* 1 fo|
|00001340| 72 20 72 65 67 69 73 74 | 65 72 73 20 74 68 61 74 |r regist|ers that|
|00001350| 20 68 61 76 65 20 70 65 | 72 76 61 73 69 76 65 20 | have pe|rvasive |
|00001360| 73 74 61 6e 64 61 72 64 | 20 75 73 65 73 0d 20 20 |standard| uses. |
|00001370| 20 61 6e 64 20 61 72 65 | 20 6e 6f 74 20 61 76 61 | and are| not ava|
|00001380| 69 6c 61 62 6c 65 20 66 | 6f 72 20 74 68 65 20 72 |ilable f|or the r|
|00001390| 65 67 69 73 74 65 72 20 | 61 6c 6c 6f 63 61 74 6f |egister |allocato|
|000013a0| 72 2e 0d 20 20 20 4f 6e | 20 74 68 65 20 38 30 33 |r.. On| the 803|
|000013b0| 38 36 2c 20 6f 6e 6c 79 | 20 74 68 65 20 73 74 61 |86, only| the sta|
|000013c0| 63 6b 20 70 6f 69 6e 74 | 65 72 20 69 73 20 73 75 |ck point|er is su|
|000013d0| 63 68 2e 20 20 2a 2f 0d | 23 64 65 66 69 6e 65 20 |ch. */.|#define |
|000013e0| 46 49 58 45 44 5f 52 45 | 47 49 53 54 45 52 53 20 |FIXED_RE|GISTERS |
|000013f0| 5c 0d 2f 2a 61 78 2c 61 | 64 2c 61 63 2c 61 62 2c |\./*ax,a|d,ac,ab,|
|00001400| 73 69 2c 64 69 2c 62 70 | 2c 73 70 2c 66 76 61 6c |si,di,bp|,sp,fval|
|00001410| 2c 66 70 30 2a 2f 20 20 | 20 20 20 20 20 5c 0d 7b |,fp0*/ | \.{|
|00001420| 20 20 30 2c 20 30 2c 20 | 30 2c 20 30 2c 20 30 2c | 0, 0, |0, 0, 0,|
|00001430| 20 30 2c 20 30 2c 20 31 | 2c 20 31 2c 20 30 7d 0d | 0, 0, 1|, 1, 0}.|
|00001440| 0d 2f 2a 20 3b 3b 63 68 | 61 6e 67 65 2d 77 66 73 |./* ;;ch|ange-wfs|
|00001450| 20 2a 2f 0d 0d 2f 2a 20 | 31 20 66 6f 72 20 72 65 | */../* |1 for re|
|00001460| 67 69 73 74 65 72 73 20 | 6e 6f 74 20 61 76 61 69 |gisters |not avai|
|00001470| 6c 61 62 6c 65 20 61 63 | 72 6f 73 73 20 66 75 6e |lable ac|ross fun|
|00001480| 63 74 69 6f 6e 20 63 61 | 6c 6c 73 2e 0d 20 20 20 |ction ca|lls.. |
|00001490| 54 68 65 73 65 20 6d 75 | 73 74 20 69 6e 63 6c 75 |These mu|st inclu|
|000014a0| 64 65 20 74 68 65 20 46 | 49 58 45 44 5f 52 45 47 |de the F|IXED_REG|
|000014b0| 49 53 54 45 52 53 20 61 | 6e 64 20 61 6c 73 6f 20 |ISTERS a|nd also |
|000014c0| 61 6e 79 0d 20 20 20 72 | 65 67 69 73 74 65 72 73 |any. r|egisters|
|000014d0| 20 74 68 61 74 20 63 61 | 6e 20 62 65 20 75 73 65 | that ca|n be use|
|000014e0| 64 20 77 69 74 68 6f 75 | 74 20 62 65 69 6e 67 20 |d withou|t being |
|000014f0| 73 61 76 65 64 2e 0d 20 | 20 20 54 68 65 20 6c 61 |saved.. | The la|
|00001500| 74 74 65 72 20 6d 75 73 | 74 20 69 6e 63 6c 75 64 |tter mus|t includ|
|00001510| 65 20 74 68 65 20 72 65 | 67 69 73 74 65 72 73 20 |e the re|gisters |
|00001520| 77 68 65 72 65 20 76 61 | 6c 75 65 73 20 61 72 65 |where va|lues are|
|00001530| 20 72 65 74 75 72 6e 65 | 64 0d 20 20 20 61 6e 64 | returne|d. and|
|00001540| 20 74 68 65 20 72 65 67 | 69 73 74 65 72 20 77 68 | the reg|ister wh|
|00001550| 65 72 65 20 73 74 72 75 | 63 74 75 72 65 2d 76 61 |ere stru|cture-va|
|00001560| 6c 75 65 20 61 64 64 72 | 65 73 73 65 73 20 61 72 |lue addr|esses ar|
|00001570| 65 20 70 61 73 73 65 64 | 2e 0d 20 20 20 41 73 69 |e passed|.. Asi|
|00001580| 64 65 20 66 72 6f 6d 20 | 74 68 61 74 2c 20 79 6f |de from |that, yo|
|00001590| 75 20 63 61 6e 20 69 6e | 63 6c 75 64 65 20 61 73 |u can in|clude as|
|000015a0| 20 6d 61 6e 79 20 6f 74 | 68 65 72 20 72 65 67 69 | many ot|her regi|
|000015b0| 73 74 65 72 73 20 61 73 | 20 79 6f 75 20 6c 69 6b |sters as| you lik|
|000015c0| 65 2e 20 20 2a 2f 0d 0d | 23 64 65 66 69 6e 65 20 |e. */..|#define |
|000015d0| 43 41 4c 4c 5f 55 53 45 | 44 5f 52 45 47 49 53 54 |CALL_USE|D_REGIST|
|000015e0| 45 52 53 20 5c 0d 2f 2a | 61 78 2c 61 64 2c 61 63 |ERS \./*|ax,ad,ac|
|000015f0| 2c 61 62 2c 73 69 2c 64 | 69 2c 62 70 2c 73 70 2c |,ab,si,d|i,bp,sp,|
|00001600| 2a 2f 20 5c 0d 7b 20 20 | 31 2c 20 31 2c 20 31 2c |*/ \.{ |1, 1, 1,|
|00001610| 20 30 2c 20 30 2c 20 30 | 2c 20 30 2c 20 31 2c 20 | 0, 0, 0|, 0, 1, |
|00001620| 20 5c 0d 20 20 20 31 2c | 20 31 7d 0d 0d 2f 2a 20 | \. 1,| 1}../* |
|00001630| 52 65 74 75 72 6e 20 6e | 75 6d 62 65 72 20 6f 66 |Return n|umber of|
|00001640| 20 63 6f 6e 73 65 63 75 | 74 69 76 65 20 68 61 72 | consecu|tive har|
|00001650| 64 20 72 65 67 73 20 6e | 65 65 64 65 64 20 73 74 |d regs n|eeded st|
|00001660| 61 72 74 69 6e 67 20 61 | 74 20 72 65 67 20 52 45 |arting a|t reg RE|
|00001670| 47 4e 4f 0d 20 20 20 74 | 6f 20 68 6f 6c 64 20 73 |GNO. t|o hold s|
|00001680| 6f 6d 65 74 68 69 6e 67 | 20 6f 66 20 6d 6f 64 65 |omething| of mode|
|00001690| 20 4d 4f 44 45 2e 0d 20 | 20 20 54 68 69 73 20 69 | MODE.. | This i|
|000016a0| 73 20 6f 72 64 69 6e 61 | 72 69 6c 79 20 74 68 65 |s ordina|rily the|
|000016b0| 20 6c 65 6e 67 74 68 20 | 69 6e 20 77 6f 72 64 73 | length |in words|
|000016c0| 20 6f 66 20 61 20 76 61 | 6c 75 65 20 6f 66 20 6d | of a va|lue of m|
|000016d0| 6f 64 65 20 4d 4f 44 45 | 0d 20 20 20 62 75 74 20 |ode MODE|. but |
|000016e0| 63 61 6e 20 62 65 20 6c | 65 73 73 20 66 6f 72 20 |can be l|ess for |
|000016f0| 63 65 72 74 61 69 6e 20 | 6d 6f 64 65 73 20 69 6e |certain |modes in|
|00001700| 20 73 70 65 63 69 61 6c | 20 6c 6f 6e 67 20 72 65 | special| long re|
|00001710| 67 69 73 74 65 72 73 2e | 0d 0d 20 20 20 41 63 74 |gisters.|.. Act|
|00001720| 75 61 6c 6c 79 20 74 68 | 65 72 65 20 61 72 65 20 |ually th|ere are |
|00001730| 6e 6f 20 74 77 6f 20 77 | 6f 72 64 20 6d 6f 76 65 |no two w|ord move|
|00001740| 20 69 6e 73 74 72 75 63 | 74 69 6f 6e 73 20 66 6f | instruc|tions fo|
|00001750| 72 20 63 6f 6e 73 65 63 | 75 74 69 76 65 20 0d 20 |r consec|utive . |
|00001760| 20 20 72 65 67 69 73 74 | 65 72 73 2e 20 20 41 6e | regist|ers. An|
|00001770| 64 20 6f 6e 6c 79 20 72 | 65 67 69 73 74 65 72 73 |d only r|egisters|
|00001780| 20 30 2d 33 20 6d 61 79 | 20 68 61 76 65 20 6d 6f | 0-3 may| have mo|
|00001790| 76 20 62 79 74 65 20 69 | 6e 73 74 72 75 63 74 69 |v byte i|nstructi|
|000017a0| 6f 6e 73 0d 20 20 20 61 | 70 70 6c 69 65 64 20 74 |ons. a|pplied t|
|000017b0| 6f 20 74 68 65 6d 2e 0d | 20 20 20 2a 2f 0d 0d 23 |o them..| */..#|
|000017c0| 64 65 66 69 6e 65 20 48 | 41 52 44 5f 52 45 47 4e |define H|ARD_REGN|
|000017d0| 4f 5f 4e 52 45 47 53 28 | 52 45 47 4e 4f 2c 20 4d |O_NREGS(|REGNO, M|
|000017e0| 4f 44 45 29 20 20 20 5c | 0d 20 20 28 28 52 45 47 |ODE) \|. ((REG|
|000017f0| 4e 4f 29 20 3e 3d 20 38 | 20 3f 20 31 09 09 09 09 |NO) >= 8| ? 1....|
|00001800| 5c 0d 20 20 20 3a 20 28 | 28 47 45 54 5f 4d 4f 44 |\. : (|(GET_MOD|
|00001810| 45 5f 53 49 5a 45 20 28 | 4d 4f 44 45 29 20 2b 20 |E_SIZE (|MODE) + |
|00001820| 55 4e 49 54 53 5f 50 45 | 52 5f 57 4f 52 44 20 2d |UNITS_PE|R_WORD -|
|00001830| 20 31 29 20 2f 20 55 4e | 49 54 53 5f 50 45 52 5f | 1) / UN|ITS_PER_|
|00001840| 57 4f 52 44 29 29 0d 0d | 2f 2a 20 56 61 6c 75 65 |WORD))..|/* Value|
|00001850| 20 69 73 20 31 20 69 66 | 20 68 61 72 64 20 72 65 | is 1 if| hard re|
|00001860| 67 69 73 74 65 72 20 52 | 45 47 4e 4f 20 63 61 6e |gister R|EGNO can|
|00001870| 20 68 6f 6c 64 20 61 20 | 76 61 6c 75 65 20 6f 66 | hold a |value of|
|00001880| 20 6d 61 63 68 69 6e 65 | 2d 6d 6f 64 65 20 4d 4f | machine|-mode MO|
|00001890| 44 45 2e 0d 20 20 20 4f | 6e 20 74 68 65 20 38 30 |DE.. O|n the 80|
|000018a0| 33 38 36 2c 20 74 68 65 | 20 66 69 72 73 74 20 34 |386, the| first 4|
|000018b0| 20 63 70 75 20 72 65 67 | 69 73 74 65 72 73 20 63 | cpu reg|isters c|
|000018c0| 61 6e 20 68 6f 6c 64 20 | 61 6e 79 20 6d 6f 64 65 |an hold |any mode|
|000018d0| 2e 0d 20 20 20 57 68 69 | 6c 65 20 74 68 65 20 66 |.. Whi|le the f|
|000018e0| 6c 6f 61 74 69 6e 67 20 | 70 6f 69 6e 74 20 72 65 |loating |point re|
|000018f0| 67 69 73 74 65 72 73 20 | 6d 61 79 20 68 6f 6c 64 |gisters |may hold|
|00001900| 20 53 46 6d 6f 64 65 20 | 6f 72 20 44 46 6d 6f 64 | SFmode |or DFmod|
|00001910| 65 20 6f 6e 6c 79 2e 0d | 20 20 20 2a 2f 0d 0d 23 |e only..| */..#|
|00001920| 64 65 66 69 6e 65 20 48 | 41 52 44 5f 52 45 47 4e |define H|ARD_REGN|
|00001930| 4f 5f 4d 4f 44 45 5f 4f | 4b 28 52 45 47 4e 4f 2c |O_MODE_O|K(REGNO,|
|00001940| 20 4d 4f 44 45 29 20 5c | 0d 20 20 68 61 72 64 5f | MODE) \|. hard_|
|00001950| 72 65 67 6e 6f 5f 6d 6f | 64 65 5f 6f 6b 28 52 45 |regno_mo|de_ok(RE|
|00001960| 47 4e 4f 2c 4d 4f 44 45 | 29 0d 0d 2f 2a 20 56 61 |GNO,MODE|)../* Va|
|00001970| 6c 75 65 20 69 73 20 31 | 20 69 66 20 69 74 20 69 |lue is 1| if it i|
|00001980| 73 20 61 20 67 6f 6f 64 | 20 69 64 65 61 20 74 6f |s a good| idea to|
|00001990| 20 74 69 65 20 74 77 6f | 20 70 73 65 75 64 6f 20 | tie two| pseudo |
|000019a0| 72 65 67 69 73 74 65 72 | 73 0d 20 20 20 77 68 65 |register|s. whe|
|000019b0| 6e 20 6f 6e 65 20 68 61 | 73 20 6d 6f 64 65 20 4d |n one ha|s mode M|
|000019c0| 4f 44 45 31 20 61 6e 64 | 20 6f 6e 65 20 68 61 73 |ODE1 and| one has|
|000019d0| 20 6d 6f 64 65 20 4d 4f | 44 45 32 2e 0d 20 20 20 | mode MO|DE2.. |
|000019e0| 49 66 20 48 41 52 44 5f | 52 45 47 4e 4f 5f 4d 4f |If HARD_|REGNO_MO|
|000019f0| 44 45 5f 4f 4b 20 63 6f | 75 6c 64 20 70 72 6f 64 |DE_OK co|uld prod|
|00001a00| 75 63 65 20 64 69 66 66 | 65 72 65 6e 74 20 76 61 |uce diff|erent va|
|00001a10| 6c 75 65 73 20 66 6f 72 | 20 4d 4f 44 45 31 20 61 |lues for| MODE1 a|
|00001a20| 6e 64 20 4d 4f 44 45 32 | 2c 0d 20 20 20 66 6f 72 |nd MODE2|,. for|
|00001a30| 20 61 6e 79 20 68 61 72 | 64 20 72 65 67 2c 20 74 | any har|d reg, t|
|00001a40| 68 65 6e 20 74 68 69 73 | 20 6d 75 73 74 20 62 65 |hen this| must be|
|00001a50| 20 30 20 66 6f 72 20 63 | 6f 72 72 65 63 74 20 6f | 0 for c|orrect o|
|00001a60| 75 74 70 75 74 2e 20 20 | 2a 2f 0d 0d 23 64 65 66 |utput. |*/..#def|
|00001a70| 69 6e 65 20 4d 4f 44 45 | 53 5f 54 49 45 41 42 4c |ine MODE|S_TIEABL|
|00001a80| 45 5f 50 28 4d 4f 44 45 | 31 2c 20 4d 4f 44 45 32 |E_P(MODE|1, MODE2|
|00001a90| 29 20 28 28 4d 4f 44 45 | 31 29 20 3d 3d 20 28 4d |) ((MODE|1) == (M|
|00001aa0| 4f 44 45 32 29 29 0d 0d | 2f 2a 20 53 70 65 63 69 |ODE2))..|/* Speci|
|00001ab0| 66 79 20 74 68 65 20 72 | 65 67 69 73 74 65 72 73 |fy the r|egisters|
|00001ac0| 20 75 73 65 64 20 66 6f | 72 20 63 65 72 74 61 69 | used fo|r certai|
|00001ad0| 6e 20 73 74 61 6e 64 61 | 72 64 20 70 75 72 70 6f |n standa|rd purpo|
|00001ae0| 73 65 73 2e 0d 20 20 20 | 54 68 65 20 76 61 6c 75 |ses.. |The valu|
|00001af0| 65 73 20 6f 66 20 74 68 | 65 73 65 20 6d 61 63 72 |es of th|ese macr|
|00001b00| 6f 73 20 61 72 65 20 72 | 65 67 69 73 74 65 72 20 |os are r|egister |
|00001b10| 6e 75 6d 62 65 72 73 2e | 20 20 2a 2f 0d 0d 2f 2a |numbers.| */../*|
|00001b20| 20 6f 6e 20 74 68 65 20 | 33 38 36 20 74 68 65 20 | on the |386 the |
|00001b30| 70 63 20 72 65 67 69 73 | 74 65 72 20 69 73 20 25 |pc regis|ter is %|
|00001b40| 65 69 70 2c 20 61 6e 64 | 20 69 73 20 6e 6f 74 20 |eip, and| is not |
|00001b50| 75 73 61 62 6c 65 20 61 | 73 20 61 20 67 65 6e 65 |usable a|s a gene|
|00001b60| 72 61 6c 0d 20 20 20 72 | 65 67 69 73 74 65 72 2e |ral. r|egister.|
|00001b70| 20 20 54 68 65 20 6f 72 | 64 69 6e 61 72 79 20 6d | The or|dinary m|
|00001b80| 6f 76 20 69 6e 73 74 72 | 75 63 74 69 6f 6e 73 20 |ov instr|uctions |
|00001b90| 77 6f 6e 27 74 20 77 6f | 72 6b 20 2a 2f 0d 2f 2a |won't wo|rk */./*|
|00001ba0| 20 23 64 65 66 69 6e 65 | 20 50 43 5f 52 45 47 4e | #define| PC_REGN|
|00001bb0| 55 4d 20 20 2a 2f 0d 0d | 2f 2a 20 52 65 67 69 73 |UM */..|/* Regis|
|00001bc0| 74 65 72 20 74 6f 20 75 | 73 65 20 66 6f 72 20 70 |ter to u|se for p|
|00001bd0| 75 73 68 69 6e 67 20 66 | 75 6e 63 74 69 6f 6e 20 |ushing f|unction |
|00001be0| 61 72 67 75 6d 65 6e 74 | 73 2e 20 20 2a 2f 0d 23 |argument|s. */.#|
|00001bf0| 64 65 66 69 6e 65 20 53 | 54 41 43 4b 5f 50 4f 49 |define S|TACK_POI|
|00001c00| 4e 54 45 52 5f 52 45 47 | 4e 55 4d 20 37 0d 0d 2f |NTER_REG|NUM 7../|
|00001c10| 2a 20 42 61 73 65 20 72 | 65 67 69 73 74 65 72 20 |* Base r|egister |
|00001c20| 66 6f 72 20 61 63 63 65 | 73 73 20 74 6f 20 6c 6f |for acce|ss to lo|
|00001c30| 63 61 6c 20 76 61 72 69 | 61 62 6c 65 73 20 6f 66 |cal vari|ables of|
|00001c40| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 2e 20 20 | the fun|ction. |
|00001c50| 2a 2f 0d 23 64 65 66 69 | 6e 65 20 46 52 41 4d 45 |*/.#defi|ne FRAME|
|00001c60| 5f 50 4f 49 4e 54 45 52 | 5f 52 45 47 4e 55 4d 20 |_POINTER|_REGNUM |
|00001c70| 36 0d 0d 2f 2a 20 46 69 | 72 73 74 20 66 6c 6f 61 |6../* Fi|rst floa|
|00001c80| 74 69 6e 67 20 70 6f 69 | 6e 74 20 72 65 67 20 2a |ting poi|nt reg *|
|00001c90| 2f 0d 23 64 65 66 69 6e | 65 20 46 49 52 53 54 5f |/.#defin|e FIRST_|
|00001ca0| 46 4c 4f 41 54 5f 52 45 | 47 20 38 0d 2f 2a 20 56 |FLOAT_RE|G 8./* V|
|00001cb0| 61 6c 75 65 20 73 68 6f | 75 6c 64 20 62 65 20 6e |alue sho|uld be n|
|00001cc0| 6f 6e 7a 65 72 6f 20 69 | 66 20 66 75 6e 63 74 69 |onzero i|f functi|
|00001cd0| 6f 6e 73 20 6d 75 73 74 | 20 68 61 76 65 20 66 72 |ons must| have fr|
|00001ce0| 61 6d 65 20 70 6f 69 6e | 74 65 72 73 2e 0d 20 20 |ame poin|ters.. |
|00001cf0| 20 5a 65 72 6f 20 6d 65 | 61 6e 73 20 74 68 65 20 | Zero me|ans the |
|00001d00| 66 72 61 6d 65 20 70 6f | 69 6e 74 65 72 20 6e 65 |frame po|inter ne|
|00001d10| 65 64 20 6e 6f 74 20 62 | 65 20 73 65 74 20 75 70 |ed not b|e set up|
|00001d20| 20 28 61 6e 64 20 70 61 | 72 6d 73 0d 20 20 20 6d | (and pa|rms. m|
|00001d30| 61 79 20 62 65 20 61 63 | 63 65 73 73 65 64 20 76 |ay be ac|cessed v|
|00001d40| 69 61 20 74 68 65 20 73 | 74 61 63 6b 20 70 6f 69 |ia the s|tack poi|
|00001d50| 6e 74 65 72 29 20 69 6e | 20 66 75 6e 63 74 69 6f |nter) in| functio|
|00001d60| 6e 73 20 74 68 61 74 20 | 73 65 65 6d 20 73 75 69 |ns that |seem sui|
|00001d70| 74 61 62 6c 65 2e 0d 20 | 20 20 54 68 69 73 20 69 |table.. | This i|
|00001d80| 73 20 63 6f 6d 70 75 74 | 65 64 20 69 6e 20 60 72 |s comput|ed in `r|
|00001d90| 65 6c 6f 61 64 27 2c 20 | 69 6e 20 72 65 6c 6f 61 |eload', |in reloa|
|00001da0| 64 31 2e 63 2e 20 20 2a | 2f 0d 23 64 65 66 69 6e |d1.c. *|/.#defin|
|00001db0| 65 20 46 52 41 4d 45 5f | 50 4f 49 4e 54 45 52 5f |e FRAME_|POINTER_|
|00001dc0| 52 45 51 55 49 52 45 44 | 20 30 0d 0d 2f 2a 20 42 |REQUIRED| 0../* B|
|00001dd0| 61 73 65 20 72 65 67 69 | 73 74 65 72 20 66 6f 72 |ase regi|ster for|
|00001de0| 20 61 63 63 65 73 73 20 | 74 6f 20 61 72 67 75 6d | access |to argum|
|00001df0| 65 6e 74 73 20 6f 66 20 | 74 68 65 20 66 75 6e 63 |ents of |the func|
|00001e00| 74 69 6f 6e 2e 20 20 2a | 2f 0d 23 64 65 66 69 6e |tion. *|/.#defin|
|00001e10| 65 20 41 52 47 5f 50 4f | 49 4e 54 45 52 5f 52 45 |e ARG_PO|INTER_RE|
|00001e20| 47 4e 55 4d 20 36 0d 0d | 2f 2a 20 52 65 67 69 73 |GNUM 6..|/* Regis|
|00001e30| 74 65 72 20 69 6e 20 77 | 68 69 63 68 20 73 74 61 |ter in w|hich sta|
|00001e40| 74 69 63 2d 63 68 61 69 | 6e 20 69 73 20 70 61 73 |tic-chai|n is pas|
|00001e50| 73 65 64 20 74 6f 20 61 | 20 66 75 6e 63 74 69 6f |sed to a| functio|
|00001e60| 6e 2e 20 20 2a 2f 0d 23 | 64 65 66 69 6e 65 20 53 |n. */.#|define S|
|00001e70| 54 41 54 49 43 5f 43 48 | 41 49 4e 5f 52 45 47 4e |TATIC_CH|AIN_REGN|
|00001e80| 55 4d 20 32 0d 0d 2f 2a | 20 52 65 67 69 73 74 65 |UM 2../*| Registe|
|00001e90| 72 20 69 6e 20 77 68 69 | 63 68 20 61 64 64 72 65 |r in whi|ch addre|
|00001ea0| 73 73 20 74 6f 20 73 74 | 6f 72 65 20 61 20 73 74 |ss to st|ore a st|
|00001eb0| 72 75 63 74 75 72 65 20 | 76 61 6c 75 65 0d 20 20 |ructure |value. |
|00001ec0| 20 61 72 72 69 76 65 73 | 20 69 6e 20 74 68 65 20 | arrives| in the |
|00001ed0| 66 75 6e 63 74 69 6f 6e | 2e 20 20 4f 6e 20 74 68 |function|. On th|
|00001ee0| 65 20 33 38 36 2c 20 74 | 68 65 20 70 72 6f 6c 6f |e 386, t|he prolo|
|00001ef0| 67 75 65 0d 20 20 20 63 | 6f 70 69 65 73 20 74 68 |gue. c|opies th|
|00001f00| 69 73 20 66 72 6f 6d 20 | 74 68 65 20 73 74 61 63 |is from |the stac|
|00001f10| 6b 20 74 6f 20 72 65 67 | 69 73 74 65 72 20 25 65 |k to reg|ister %e|
|00001f20| 61 78 2e 20 20 2a 2f 0d | 23 64 65 66 69 6e 65 20 |ax. */.|#define |
|00001f30| 53 54 52 55 43 54 5f 56 | 41 4c 55 45 5f 49 4e 43 |STRUCT_V|ALUE_INC|
|00001f40| 4f 4d 49 4e 47 09 5c 0d | 20 20 20 67 65 6e 5f 72 |OMING.\.| gen_r|
|00001f50| 74 78 20 28 4d 45 4d 2c | 20 50 6d 6f 64 65 2c 20 |tx (MEM,| Pmode, |
|00001f60| 67 65 6e 5f 72 74 78 20 | 28 50 4c 55 53 2c 20 50 |gen_rtx |(PLUS, P|
|00001f70| 6d 6f 64 65 2c 20 66 72 | 61 6d 65 5f 70 6f 69 6e |mode, fr|ame_poin|
|00001f80| 74 65 72 5f 72 74 78 2c | 09 5c 0d 09 09 09 09 20 |ter_rtx,|.\..... |
|00001f90| 67 65 6e 5f 72 74 78 20 | 28 43 4f 4e 53 54 5f 49 |gen_rtx |(CONST_I|
|00001fa0| 4e 54 2c 20 56 4f 49 44 | 6d 6f 64 65 2c 20 38 29 |NT, VOID|mode, 8)|
|00001fb0| 29 29 0d 0d 2f 2a 20 50 | 6c 61 63 65 20 69 6e 20 |))../* P|lace in |
|00001fc0| 77 68 69 63 68 20 63 61 | 6c 6c 65 72 20 70 61 73 |which ca|ller pas|
|00001fd0| 73 65 73 20 74 68 65 20 | 73 74 72 75 63 74 75 72 |ses the |structur|
|00001fe0| 65 20 76 61 6c 75 65 20 | 61 64 64 72 65 73 73 2e |e value |address.|
|00001ff0| 0d 20 20 20 41 63 74 75 | 61 6c 6c 79 2c 20 61 6c |. Actu|ally, al|
|00002000| 6c 20 74 68 61 74 20 6d | 61 74 74 65 72 73 20 61 |l that m|atters a|
|00002010| 62 6f 75 74 20 74 68 69 | 73 20 76 61 6c 75 65 20 |bout thi|s value |
|00002020| 69 73 20 69 74 20 69 74 | 73 20 72 74 78 5f 63 6f |is it it|s rtx_co|
|00002030| 64 65 3a 0d 20 20 20 4d | 45 4d 20 6d 65 61 6e 73 |de:. M|EM means|
|00002040| 20 70 75 73 68 20 74 68 | 65 20 76 61 6c 75 65 20 | push th|e value |
|00002050| 6f 6e 20 74 68 65 20 73 | 74 61 63 6b 20 6c 69 6b |on the s|tack lik|
|00002060| 65 20 61 6e 20 61 72 67 | 75 6d 65 6e 74 2e 20 20 |e an arg|ument. |
|00002070| 2a 2f 0d 23 64 65 66 69 | 6e 65 20 53 54 52 55 43 |*/.#defi|ne STRUC|
|00002080| 54 5f 56 41 4c 55 45 20 | 5c 0d 20 20 20 67 65 6e |T_VALUE |\. gen|
|00002090| 5f 72 74 78 20 28 4d 45 | 4d 2c 20 50 6d 6f 64 65 |_rtx (ME|M, Pmode|
|000020a0| 2c 20 67 65 6e 5f 72 74 | 78 20 28 50 52 45 5f 44 |, gen_rt|x (PRE_D|
|000020b0| 45 43 2c 20 50 6d 6f 64 | 65 2c 20 73 74 61 63 6b |EC, Pmod|e, stack|
|000020c0| 5f 70 6f 69 6e 74 65 72 | 5f 72 74 78 29 29 0d 0c |_pointer|_rtx))..|
|000020d0| 0d 2f 2a 20 44 65 66 69 | 6e 65 20 74 68 65 20 63 |./* Defi|ne the c|
|000020e0| 6c 61 73 73 65 73 20 6f | 66 20 72 65 67 69 73 74 |lasses o|f regist|
|000020f0| 65 72 73 20 66 6f 72 20 | 72 65 67 69 73 74 65 72 |ers for |register|
|00002100| 20 63 6f 6e 73 74 72 61 | 69 6e 74 73 20 69 6e 20 | constra|ints in |
|00002110| 74 68 65 0d 20 20 20 6d | 61 63 68 69 6e 65 20 64 |the. m|achine d|
|00002120| 65 73 63 72 69 70 74 69 | 6f 6e 2e 20 20 41 6c 73 |escripti|on. Als|
|00002130| 6f 20 64 65 66 69 6e 65 | 20 72 61 6e 67 65 73 20 |o define| ranges |
|00002140| 6f 66 20 63 6f 6e 73 74 | 61 6e 74 73 2e 0d 0d 20 |of const|ants... |
|00002150| 20 20 4f 6e 65 20 6f 66 | 20 74 68 65 20 63 6c 61 | One of| the cla|
|00002160| 73 73 65 73 20 6d 75 73 | 74 20 61 6c 77 61 79 73 |sses mus|t always|
|00002170| 20 62 65 20 6e 61 6d 65 | 64 20 41 4c 4c 5f 52 45 | be name|d ALL_RE|
|00002180| 47 53 20 61 6e 64 20 69 | 6e 63 6c 75 64 65 20 61 |GS and i|nclude a|
|00002190| 6c 6c 20 68 61 72 64 20 | 72 65 67 73 2e 0d 20 20 |ll hard |regs.. |
|000021a0| 20 49 66 20 74 68 65 72 | 65 20 69 73 20 6d 6f 72 | If ther|e is mor|
|000021b0| 65 20 74 68 61 6e 20 6f | 6e 65 20 63 6c 61 73 73 |e than o|ne class|
|000021c0| 2c 20 61 6e 6f 74 68 65 | 72 20 63 6c 61 73 73 20 |, anothe|r class |
|000021d0| 6d 75 73 74 20 62 65 20 | 6e 61 6d 65 64 20 4e 4f |must be |named NO|
|000021e0| 5f 52 45 47 53 0d 20 20 | 20 61 6e 64 20 63 6f 6e |_REGS. | and con|
|000021f0| 74 61 69 6e 20 6e 6f 20 | 72 65 67 69 73 74 65 72 |tain no |register|
|00002200| 73 2e 0d 0d 20 20 20 54 | 68 65 20 6e 61 6d 65 20 |s... T|he name |
|00002210| 47 45 4e 45 52 41 4c 5f | 52 45 47 53 20 6d 75 73 |GENERAL_|REGS mus|
|00002220| 74 20 62 65 20 74 68 65 | 20 6e 61 6d 65 20 6f 66 |t be the| name of|
|00002230| 20 61 20 63 6c 61 73 73 | 20 28 6f 72 20 61 6e 20 | a class| (or an |
|00002240| 61 6c 69 61 73 20 66 6f | 72 0d 20 20 20 61 6e 6f |alias fo|r. ano|
|00002250| 74 68 65 72 20 6e 61 6d | 65 20 73 75 63 68 20 61 |ther nam|e such a|
|00002260| 73 20 41 4c 4c 5f 52 45 | 47 53 29 2e 20 20 54 68 |s ALL_RE|GS). Th|
|00002270| 69 73 20 69 73 20 74 68 | 65 20 63 6c 61 73 73 20 |is is th|e class |
|00002280| 6f 66 20 72 65 67 69 73 | 74 65 72 73 0d 20 20 20 |of regis|ters. |
|00002290| 74 68 61 74 20 69 73 20 | 61 6c 6c 6f 77 65 64 20 |that is |allowed |
|000022a0| 62 79 20 22 67 22 20 6f | 72 20 22 72 22 20 69 6e |by "g" o|r "r" in|
|000022b0| 20 61 20 72 65 67 69 73 | 74 65 72 20 63 6f 6e 73 | a regis|ter cons|
|000022c0| 74 72 61 69 6e 74 2e 0d | 20 20 20 41 6c 73 6f 2c |traint..| Also,|
|000022d0| 20 72 65 67 69 73 74 65 | 72 73 20 6f 75 74 73 69 | registe|rs outsi|
|000022e0| 64 65 20 74 68 69 73 20 | 63 6c 61 73 73 20 61 72 |de this |class ar|
|000022f0| 65 20 61 6c 6c 6f 63 61 | 74 65 64 20 6f 6e 6c 79 |e alloca|ted only|
|00002300| 20 77 68 65 6e 0d 20 20 | 20 69 6e 73 74 72 75 63 | when. | instruc|
|00002310| 74 69 6f 6e 73 20 65 78 | 70 72 65 73 73 20 70 72 |tions ex|press pr|
|00002320| 65 66 65 72 65 6e 63 65 | 73 20 66 6f 72 20 74 68 |eference|s for th|
|00002330| 65 6d 2e 0d 0d 20 20 20 | 54 68 65 20 63 6c 61 73 |em... |The clas|
|00002340| 73 65 73 20 6d 75 73 74 | 20 62 65 20 6e 75 6d 62 |ses must| be numb|
|00002350| 65 72 65 64 20 69 6e 20 | 6e 6f 6e 64 65 63 72 65 |ered in |nondecre|
|00002360| 61 73 69 6e 67 20 6f 72 | 64 65 72 3b 20 74 68 61 |asing or|der; tha|
|00002370| 74 20 69 73 2c 0d 20 20 | 20 61 20 6c 61 72 67 65 |t is,. | a large|
|00002380| 72 2d 6e 75 6d 62 65 72 | 65 64 20 63 6c 61 73 73 |r-number|ed class|
|00002390| 20 6d 75 73 74 20 6e 65 | 76 65 72 20 62 65 20 63 | must ne|ver be c|
|000023a0| 6f 6e 74 61 69 6e 65 64 | 20 63 6f 6d 70 6c 65 74 |ontained| complet|
|000023b0| 65 6c 79 0d 20 20 20 69 | 6e 20 61 20 73 6d 61 6c |ely. i|n a smal|
|000023c0| 6c 65 72 2d 6e 75 6d 62 | 65 72 65 64 20 63 6c 61 |ler-numb|ered cla|
|000023d0| 73 73 2e 0d 0d 20 20 20 | 46 6f 72 20 61 6e 79 20 |ss... |For any |
|000023e0| 74 77 6f 20 63 6c 61 73 | 73 65 73 2c 20 69 74 20 |two clas|ses, it |
|000023f0| 69 73 20 76 65 72 79 20 | 64 65 73 69 72 61 62 6c |is very |desirabl|
|00002400| 65 20 74 68 61 74 20 74 | 68 65 72 65 20 62 65 20 |e that t|here be |
|00002410| 61 6e 6f 74 68 65 72 0d | 20 20 20 63 6c 61 73 73 |another.| class|
|00002420| 20 74 68 61 74 20 72 65 | 70 72 65 73 65 6e 74 73 | that re|presents|
|00002430| 20 74 68 65 69 72 20 75 | 6e 69 6f 6e 2e 20 20 2a | their u|nion. *|
|00002440| 2f 0d 20 20 20 0d 0d 65 | 6e 75 6d 20 72 65 67 5f |/. ..e|num reg_|
|00002450| 63 6c 61 73 73 20 7b 0d | 20 20 4e 4f 5f 52 45 47 |class {.| NO_REG|
|00002460| 53 2c 20 41 52 45 47 2c | 20 44 52 45 47 2c 20 41 |S, AREG,| DREG, A|
|00002470| 44 52 45 47 2c 20 43 52 | 45 47 2c 20 42 52 45 47 |DREG, CR|EG, BREG|
|00002480| 2c 20 51 5f 52 45 47 53 | 2c 20 53 49 52 45 47 2c |, Q_REGS|, SIREG,|
|00002490| 20 44 49 52 45 47 2c 0d | 20 20 49 4e 44 45 58 5f | DIREG,.| INDEX_|
|000024a0| 52 45 47 53 2c 20 47 45 | 4e 45 52 41 4c 5f 52 45 |REGS, GE|NERAL_RE|
|000024b0| 47 53 2c 20 46 4c 4f 41 | 54 5f 52 45 47 53 2c 20 |GS, FLOA|T_REGS, |
|000024c0| 41 4c 4c 5f 52 45 47 53 | 2c 20 4c 49 4d 5f 52 45 |ALL_REGS|, LIM_RE|
|000024d0| 47 5f 43 4c 41 53 53 45 | 53 20 7d 3b 0d 0d 23 64 |G_CLASSE|S };..#d|
|000024e0| 65 66 69 6e 65 20 4e 5f | 52 45 47 5f 43 4c 41 53 |efine N_|REG_CLAS|
|000024f0| 53 45 53 20 28 69 6e 74 | 29 20 4c 49 4d 5f 52 45 |SES (int|) LIM_RE|
|00002500| 47 5f 43 4c 41 53 53 45 | 53 0d 0d 2f 2a 20 47 69 |G_CLASSE|S../* Gi|
|00002510| 76 65 20 6e 61 6d 65 73 | 20 6f 66 20 72 65 67 69 |ve names| of regi|
|00002520| 73 74 65 72 20 63 6c 61 | 73 73 65 73 20 61 73 20 |ster cla|sses as |
|00002530| 73 74 72 69 6e 67 73 20 | 66 6f 72 20 64 75 6d 70 |strings |for dump|
|00002540| 20 66 69 6c 65 2e 20 20 | 20 2a 2f 0d 0d 23 64 65 | file. | */..#de|
|00002550| 66 69 6e 65 20 52 45 47 | 5f 43 4c 41 53 53 5f 4e |fine REG|_CLASS_N|
|00002560| 41 4d 45 53 20 5c 0d 7b | 20 20 22 4e 4f 5f 52 45 |AMES \.{| "NO_RE|
|00002570| 47 53 22 2c 20 22 41 52 | 45 47 22 2c 20 22 44 52 |GS", "AR|EG", "DR|
|00002580| 45 47 22 2c 20 22 41 44 | 52 45 47 22 2c 20 22 43 |EG", "AD|REG", "C|
|00002590| 52 45 47 22 2c 20 22 42 | 52 45 47 22 2c 22 51 5f |REG", "B|REG","Q_|
|000025a0| 52 45 47 53 22 2c 20 5c | 0d 20 20 20 22 53 49 52 |REGS", \|. "SIR|
|000025b0| 45 47 22 2c 20 22 44 49 | 52 45 47 22 2c 09 09 09 |EG", "DI|REG",...|
|000025c0| 09 09 09 5c 0d 20 20 20 | 22 49 4e 44 45 58 5f 52 |...\. |"INDEX_R|
|000025d0| 45 47 53 22 2c 20 22 47 | 45 4e 45 52 41 4c 5f 52 |EGS", "G|ENERAL_R|
|000025e0| 45 47 53 22 2c 20 22 46 | 4c 4f 41 54 5f 52 45 47 |EGS", "F|LOAT_REG|
|000025f0| 53 22 2c 20 22 41 4c 4c | 5f 52 45 47 53 22 7d 0d |S", "ALL|_REGS"}.|
|00002600| 2f 2a 20 44 65 66 69 6e | 65 20 77 68 69 63 68 20 |/* Defin|e which |
|00002610| 72 65 67 69 73 74 65 72 | 73 20 66 69 74 20 69 6e |register|s fit in|
|00002620| 20 77 68 69 63 68 20 63 | 6c 61 73 73 65 73 2e 0d | which c|lasses..|
|00002630| 20 20 20 54 68 69 73 20 | 69 73 20 61 6e 20 69 6e | This |is an in|
|00002640| 69 74 69 61 6c 69 7a 65 | 72 20 66 6f 72 20 61 20 |itialize|r for a |
|00002650| 76 65 63 74 6f 72 20 6f | 66 20 48 41 52 44 5f 52 |vector o|f HARD_R|
|00002660| 45 47 5f 53 45 54 0d 20 | 20 20 6f 66 20 6c 65 6e |EG_SET. | of len|
|00002670| 67 74 68 20 4e 5f 52 45 | 47 5f 43 4c 41 53 53 45 |gth N_RE|G_CLASSE|
|00002680| 53 2e 20 20 2a 2f 0d 0d | 0d 0d 23 64 65 66 69 6e |S. */..|..#defin|
|00002690| 65 20 52 45 47 5f 43 4c | 41 53 53 5f 43 4f 4e 54 |e REG_CL|ASS_CONT|
|000026a0| 45 4e 54 53 20 7b 30 2c | 20 30 78 31 2c 20 30 78 |ENTS {0,| 0x1, 0x|
|000026b0| 32 2c 20 30 78 33 2c 20 | 30 78 34 2c 20 30 78 38 |2, 0x3, |0x4, 0x8|
|000026c0| 2c 20 30 78 66 2c 5c 0d | 09 09 09 20 20 20 20 30 |, 0xf,\.|... 0|
|000026d0| 78 31 30 2c 20 30 78 32 | 30 2c 20 30 78 37 66 2c |x10, 0x2|0, 0x7f,|
|000026e0| 20 30 78 66 66 2c 20 30 | 78 33 30 30 2c 20 30 78 | 0xff, 0|x300, 0x|
|000026f0| 33 66 66 7d 0d 0d 2f 2a | 20 54 68 65 20 73 61 6d |3ff}../*| The sam|
|00002700| 65 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 2c 20 69 |e inform|ation, i|
|00002710| 6e 76 65 72 74 65 64 3a | 0d 20 20 20 52 65 74 75 |nverted:|. Retu|
|00002720| 72 6e 20 74 68 65 20 63 | 6c 61 73 73 20 6e 75 6d |rn the c|lass num|
|00002730| 62 65 72 20 6f 66 20 74 | 68 65 20 73 6d 61 6c 6c |ber of t|he small|
|00002740| 65 73 74 20 63 6c 61 73 | 73 20 63 6f 6e 74 61 69 |est clas|s contai|
|00002750| 6e 69 6e 67 0d 20 20 20 | 72 65 67 20 6e 75 6d 62 |ning. |reg numb|
|00002760| 65 72 20 52 45 47 4e 4f | 2e 20 20 54 68 69 73 20 |er REGNO|. This |
|00002770| 63 6f 75 6c 64 20 62 65 | 20 61 20 63 6f 6e 64 69 |could be| a condi|
|00002780| 74 69 6f 6e 61 6c 20 65 | 78 70 72 65 73 73 69 6f |tional e|xpressio|
|00002790| 6e 0d 20 20 20 6f 72 20 | 63 6f 75 6c 64 20 69 6e |n. or |could in|
|000027a0| 64 65 78 20 61 6e 20 61 | 72 72 61 79 2e 20 20 2a |dex an a|rray. *|
|000027b0| 2f 0d 0d 23 64 65 66 69 | 6e 65 20 52 45 47 4e 4f |/..#defi|ne REGNO|
|000027c0| 5f 52 45 47 5f 43 4c 41 | 53 53 28 52 45 47 4e 4f |_REG_CLA|SS(REGNO|
|000027d0| 29 20 5c 0d 20 28 28 52 | 45 47 4e 4f 29 20 3d 3d |) \. ((R|EGNO) ==|
|000027e0| 20 30 20 3f 20 41 52 45 | 47 20 3a 20 5c 0d 20 20 | 0 ? ARE|G : \. |
|000027f0| 28 52 45 47 4e 4f 29 20 | 3d 3d 20 31 20 3f 20 44 |(REGNO) |== 1 ? D|
|00002800| 52 45 47 20 3a 20 5c 0d | 20 20 28 52 45 47 4e 4f |REG : \.| (REGNO|
|00002810| 29 20 3d 3d 20 32 20 3f | 20 43 52 45 47 20 3a 20 |) == 2 ?| CREG : |
|00002820| 5c 0d 20 20 28 52 45 47 | 4e 4f 29 20 3d 3d 20 33 |\. (REG|NO) == 3|
|00002830| 20 3f 20 42 52 45 47 20 | 3a 20 5c 0d 20 20 28 52 | ? BREG |: \. (R|
|00002840| 45 47 4e 4f 29 20 3d 3d | 20 34 20 3f 20 53 49 52 |EGNO) ==| 4 ? SIR|
|00002850| 45 47 20 3a 20 5c 0d 20 | 20 28 52 45 47 4e 4f 29 |EG : \. | (REGNO)|
|00002860| 20 3d 3d 20 35 20 3f 20 | 44 49 52 45 47 20 3a 20 | == 5 ? |DIREG : |
|00002870| 5c 0d 20 20 28 52 45 47 | 4e 4f 29 20 3d 3d 20 37 |\. (REG|NO) == 7|
|00002880| 20 3f 20 47 45 4e 45 52 | 41 4c 5f 52 45 47 53 20 | ? GENER|AL_REGS |
|00002890| 3a 20 5c 0d 20 20 28 52 | 45 47 4e 4f 29 20 3c 20 |: \. (R|EGNO) < |
|000028a0| 38 20 3f 20 49 4e 44 45 | 58 5f 52 45 47 53 20 3a |8 ? INDE|X_REGS :|
|000028b0| 20 5c 0d 20 20 46 4c 4f | 41 54 5f 52 45 47 53 29 | \. FLO|AT_REGS)|
|000028c0| 0d 0d 23 64 65 66 69 6e | 65 20 4e 4f 4e 5f 51 49 |..#defin|e NON_QI|
|000028d0| 5f 52 45 47 5f 50 28 58 | 29 20 5c 0d 20 20 28 52 |_REG_P(X|) \. (R|
|000028e0| 45 47 5f 50 20 28 58 29 | 20 26 26 20 52 45 47 4e |EG_P (X)| && REGN|
|000028f0| 4f 20 28 58 29 20 3e 3d | 20 34 20 26 26 20 52 45 |O (X) >=| 4 && RE|
|00002900| 47 4e 4f 20 28 58 29 20 | 3c 20 46 49 52 53 54 5f |GNO (X) |< FIRST_|
|00002910| 50 53 45 55 44 4f 5f 52 | 45 47 49 53 54 45 52 29 |PSEUDO_R|EGISTER)|
|00002920| 0d 0d 23 64 65 66 69 6e | 65 20 46 50 5f 52 45 47 |..#defin|e FP_REG|
|00002930| 5f 50 28 58 29 20 28 52 | 45 47 5f 50 20 28 58 29 |_P(X) (R|EG_P (X)|
|00002940| 20 26 26 20 46 50 5f 52 | 45 47 4e 4f 5f 50 20 28 | && FP_R|EGNO_P (|
|00002950| 52 45 47 4e 4f 20 28 58 | 29 29 29 0d 23 64 65 66 |REGNO (X|))).#def|
|00002960| 69 6e 65 20 46 50 5f 52 | 45 47 4e 4f 5f 50 28 6e |ine FP_R|EGNO_P(n|
|00002970| 29 20 28 28 6e 29 20 3e | 3d 20 46 49 52 53 54 5f |) ((n) >|= FIRST_|
|00002980| 46 4c 4f 41 54 5f 52 45 | 47 20 26 26 20 28 6e 29 |FLOAT_RE|G && (n)|
|00002990| 20 3c 20 46 49 52 53 54 | 5f 50 53 45 55 44 4f 5f | < FIRST|_PSEUDO_|
|000029a0| 52 45 47 49 53 54 45 52 | 29 0d 20 20 0d 2f 2a 20 |REGISTER|). ./* |
|000029b0| 54 72 79 20 74 6f 20 6d | 61 69 6e 74 61 69 6e 20 |Try to m|aintain |
|000029c0| 74 68 65 20 61 63 63 75 | 72 61 63 79 20 6f 66 20 |the accu|racy of |
|000029d0| 74 68 65 20 64 65 61 74 | 68 20 6e 6f 74 65 73 20 |the deat|h notes |
|000029e0| 66 6f 72 20 72 65 67 73 | 20 73 61 74 69 73 66 79 |for regs| satisfy|
|000029f0| 69 6e 67 20 74 68 65 0d | 20 20 20 66 6f 6c 6c 6f |ing the.| follo|
|00002a00| 77 69 6e 67 2e 20 20 49 | 6d 70 6f 72 74 61 6e 74 |wing. I|mportant|
|00002a10| 20 66 6f 72 20 73 74 61 | 63 6b 20 6c 69 6b 65 20 | for sta|ck like |
|00002a20| 72 65 67 73 2c 20 74 6f | 20 6b 6e 6f 77 20 77 68 |regs, to| know wh|
|00002a30| 65 6e 20 74 6f 20 70 6f | 70 2e 20 2a 2f 0d 0d 23 |en to po|p. */..#|
|00002a40| 64 65 66 69 6e 65 20 50 | 52 45 53 45 52 56 45 5f |define P|RESERVE_|
|00002a50| 44 45 41 54 48 5f 49 4e | 46 4f 5f 52 45 47 4e 4f |DEATH_IN|FO_REGNO|
|00002a60| 5f 50 28 78 29 20 46 50 | 5f 52 45 47 4e 4f 5f 50 |_P(x) FP|_REGNO_P|
|00002a70| 28 78 29 0d 0d 2f 2a 20 | 31 20 69 66 20 72 65 67 |(x)../* |1 if reg|
|00002a80| 69 73 74 65 72 20 52 45 | 47 4e 4f 20 63 61 6e 20 |ister RE|GNO can |
|00002a90| 6d 61 67 69 63 61 6c 6c | 79 20 6f 76 65 72 6c 61 |magicall|y overla|
|00002aa0| 70 20 6f 74 68 65 72 20 | 72 65 67 73 2e 0d 20 20 |p other |regs.. |
|00002ab0| 20 4e 6f 74 65 20 74 68 | 61 74 20 6e 6f 6e 7a 65 | Note th|at nonze|
|00002ac0| 72 6f 20 76 61 6c 75 65 | 73 20 77 6f 72 6b 20 6f |ro value|s work o|
|00002ad0| 6e 6c 79 20 69 6e 20 76 | 65 72 79 20 73 70 65 63 |nly in v|ery spec|
|00002ae0| 69 61 6c 20 63 69 72 63 | 75 6d 73 74 61 6e 63 65 |ial circ|umstance|
|00002af0| 73 2e 0d 20 20 20 57 65 | 20 72 65 74 75 72 6e 20 |s.. We| return |
|00002b00| 31 20 66 6f 72 20 61 6e | 20 46 50 20 72 65 67 20 |1 for an| FP reg |
|00002b10| 62 65 63 61 75 73 65 20 | 22 62 6f 74 68 22 20 6f |because |"both" o|
|00002b20| 75 72 20 46 50 20 72 65 | 67 73 0d 20 20 20 61 72 |ur FP re|gs. ar|
|00002b30| 65 20 72 65 61 6c 6c 79 | 20 74 68 65 20 73 61 6d |e really| the sam|
|00002b40| 65 20 72 65 67 2e 20 20 | 2a 2f 0d 0d 23 64 65 66 |e reg. |*/..#def|
|00002b50| 69 6e 65 20 4f 56 45 52 | 4c 41 50 50 49 4e 47 5f |ine OVER|LAPPING_|
|00002b60| 52 45 47 4e 4f 5f 50 28 | 52 45 47 4e 4f 29 20 46 |REGNO_P(|REGNO) F|
|00002b70| 50 5f 52 45 47 4e 4f 5f | 50 20 28 52 45 47 4e 4f |P_REGNO_|P (REGNO|
|00002b80| 29 0d 0d 2f 2a 20 54 68 | 65 20 63 6c 61 73 73 20 |)../* Th|e class |
|00002b90| 76 61 6c 75 65 20 66 6f | 72 20 69 6e 64 65 78 20 |value fo|r index |
|00002ba0| 72 65 67 69 73 74 65 72 | 73 2c 20 61 6e 64 20 74 |register|s, and t|
|00002bb0| 68 65 20 6f 6e 65 20 66 | 6f 72 20 62 61 73 65 20 |he one f|or base |
|00002bc0| 72 65 67 73 2e 20 20 2a | 2f 0d 0d 23 64 65 66 69 |regs. *|/..#defi|
|00002bd0| 6e 65 20 49 4e 44 45 58 | 5f 52 45 47 5f 43 4c 41 |ne INDEX|_REG_CLA|
|00002be0| 53 53 20 49 4e 44 45 58 | 5f 52 45 47 53 0d 23 64 |SS INDEX|_REGS.#d|
|00002bf0| 65 66 69 6e 65 20 42 41 | 53 45 5f 52 45 47 5f 43 |efine BA|SE_REG_C|
|00002c00| 4c 41 53 53 20 47 45 4e | 45 52 41 4c 5f 52 45 47 |LASS GEN|ERAL_REG|
|00002c10| 53 0d 0d 2f 2a 20 47 65 | 74 20 72 65 67 5f 63 6c |S../* Ge|t reg_cl|
|00002c20| 61 73 73 20 66 72 6f 6d | 20 61 20 6c 65 74 74 65 |ass from| a lette|
|00002c30| 72 20 73 75 63 68 20 61 | 73 20 61 70 70 65 61 72 |r such a|s appear|
|00002c40| 73 20 69 6e 20 74 68 65 | 20 6d 61 63 68 69 6e 65 |s in the| machine|
|00002c50| 20 64 65 73 63 72 69 70 | 74 69 6f 6e 2e 20 20 2a | descrip|tion. *|
|00002c60| 2f 0d 0d 23 64 65 66 69 | 6e 65 20 52 45 47 5f 43 |/..#defi|ne REG_C|
|00002c70| 4c 41 53 53 5f 46 52 4f | 4d 5f 4c 45 54 54 45 52 |LASS_FRO|M_LETTER|
|00002c80| 28 43 29 09 09 5c 0d 20 | 20 28 28 43 29 20 3d 3d |(C)..\. | ((C) ==|
|00002c90| 20 27 72 27 20 3f 20 47 | 45 4e 45 52 41 4c 5f 52 | 'r' ? G|ENERAL_R|
|00002ca0| 45 47 53 20 3a 09 09 09 | 5c 0d 20 20 20 28 43 29 |EGS :...|\. (C)|
|00002cb0| 20 3d 3d 20 27 71 27 20 | 3f 20 51 5f 52 45 47 53 | == 'q' |? Q_REGS|
|00002cc0| 20 3a 09 09 09 5c 0d 20 | 20 20 28 43 29 20 3d 3d | :...\. | (C) ==|
|00002cd0| 20 27 66 27 20 3f 20 46 | 4c 4f 41 54 5f 52 45 47 | 'f' ? F|LOAT_REG|
|00002ce0| 53 20 3a 09 09 09 5c 0d | 20 20 20 28 43 29 20 3d |S :...\.| (C) =|
|00002cf0| 3d 20 27 61 27 20 3f 20 | 41 52 45 47 20 3a 20 28 |= 'a' ? |AREG : (|
|00002d00| 43 29 20 3d 3d 20 27 62 | 27 20 3f 20 42 52 45 47 |C) == 'b|' ? BREG|
|00002d10| 20 3a 09 5c 0d 20 20 20 | 28 43 29 20 3d 3d 20 27 | :.\. |(C) == '|
|00002d20| 63 27 20 3f 20 43 52 45 | 47 20 3a 20 28 43 29 20 |c' ? CRE|G : (C) |
|00002d30| 3d 3d 20 27 64 27 20 3f | 20 44 52 45 47 20 3a 09 |== 'd' ?| DREG :.|
|00002d40| 5c 0d 20 20 20 28 43 29 | 20 3d 3d 20 27 41 27 20 |\. (C)| == 'A' |
|00002d50| 3f 20 41 44 52 45 47 20 | 3a 09 09 09 09 5c 0d 20 |? ADREG |:....\. |
|00002d60| 20 20 28 43 29 20 3d 3d | 20 27 53 27 20 3f 20 53 | (C) ==| 'S' ? S|
|00002d70| 49 52 45 47 20 3a 09 09 | 09 09 5c 0d 20 20 20 28 |IREG :..|..\. (|
|00002d80| 43 29 20 3d 3d 20 27 44 | 27 20 3f 20 44 49 52 45 |C) == 'D|' ? DIRE|
|00002d90| 47 20 3a 20 4e 4f 5f 52 | 45 47 53 29 0d 0d 2f 2a |G : NO_R|EGS)../*|
|00002da0| 20 54 68 65 20 6c 65 74 | 74 65 72 73 20 49 2c 20 | The let|ters I, |
|00002db0| 4a 2c 20 4b 2c 20 4c 20 | 61 6e 64 20 4d 20 69 6e |J, K, L |and M in|
|00002dc0| 20 61 20 72 65 67 69 73 | 74 65 72 20 63 6f 6e 73 | a regis|ter cons|
|00002dd0| 74 72 61 69 6e 74 20 73 | 74 72 69 6e 67 0d 20 20 |traint s|tring. |
|00002de0| 20 63 61 6e 20 62 65 20 | 75 73 65 64 20 74 6f 20 | can be |used to |
|00002df0| 73 74 61 6e 64 20 66 6f | 72 20 70 61 72 74 69 63 |stand fo|r partic|
|00002e00| 75 6c 61 72 20 72 61 6e | 67 65 73 20 6f 66 20 69 |ular ran|ges of i|
|00002e10| 6d 6d 65 64 69 61 74 65 | 20 6f 70 65 72 61 6e 64 |mmediate| operand|
|00002e20| 73 2e 0d 20 20 20 54 68 | 69 73 20 6d 61 63 72 6f |s.. Th|is macro|
|00002e30| 20 64 65 66 69 6e 65 73 | 20 77 68 61 74 20 74 68 | defines| what th|
|00002e40| 65 20 72 61 6e 67 65 73 | 20 61 72 65 2e 0d 20 20 |e ranges| are.. |
|00002e50| 20 43 20 69 73 20 74 68 | 65 20 6c 65 74 74 65 72 | C is th|e letter|
|00002e60| 2c 20 61 6e 64 20 56 41 | 4c 55 45 20 69 73 20 61 |, and VA|LUE is a|
|00002e70| 20 63 6f 6e 73 74 61 6e | 74 20 76 61 6c 75 65 2e | constan|t value.|
|00002e80| 0d 20 20 20 52 65 74 75 | 72 6e 20 31 20 69 66 20 |. Retu|rn 1 if |
|00002e90| 56 41 4c 55 45 20 69 73 | 20 69 6e 20 74 68 65 20 |VALUE is| in the |
|00002ea0| 72 61 6e 67 65 20 73 70 | 65 63 69 66 69 65 64 20 |range sp|ecified |
|00002eb0| 62 79 20 43 2e 0d 0d 20 | 20 20 49 20 69 73 20 66 |by C... | I is f|
|00002ec0| 6f 72 20 74 68 65 20 6d | 61 78 69 6d 75 6d 20 73 |or the m|aximum s|
|00002ed0| 68 69 66 74 73 2e 20 0d | 20 20 20 2a 2f 0d 0d 23 |hifts. .| */..#|
|00002ee0| 64 65 66 69 6e 65 20 43 | 4f 4e 53 54 5f 4f 4b 5f |define C|ONST_OK_|
|00002ef0| 46 4f 52 5f 4c 45 54 54 | 45 52 5f 50 28 56 41 4c |FOR_LETT|ER_P(VAL|
|00002f00| 55 45 2c 20 43 29 20 20 | 5c 0d 20 20 28 28 43 29 |UE, C) |\. ((C)|
|00002f10| 20 3d 3d 20 27 49 27 20 | 3f 20 28 56 41 4c 55 45 | == 'I' |? (VALUE|
|00002f20| 29 20 3e 3d 20 30 20 26 | 26 20 28 56 41 4c 55 45 |) >= 0 &|& (VALUE|
|00002f30| 29 20 3c 3d 20 33 31 20 | 3a 30 29 0d 0d 2f 2a 20 |) <= 31 |:0)../* |
|00002f40| 53 69 6d 69 6c 61 72 2c | 20 62 75 74 20 66 6f 72 |Similar,| but for|
|00002f50| 20 66 6c 6f 61 74 69 6e | 67 20 63 6f 6e 73 74 61 | floatin|g consta|
|00002f60| 6e 74 73 2c 20 61 6e 64 | 20 64 65 66 69 6e 69 6e |nts, and| definin|
|00002f70| 67 20 6c 65 74 74 65 72 | 73 20 47 20 61 6e 64 20 |g letter|s G and |
|00002f80| 48 2e 0d 20 20 20 48 65 | 72 65 20 56 41 4c 55 45 |H.. He|re VALUE|
|00002f90| 20 69 73 20 74 68 65 20 | 43 4f 4e 53 54 5f 44 4f | is the |CONST_DO|
|00002fa0| 55 42 4c 45 20 72 74 78 | 20 69 74 73 65 6c 66 2e |UBLE rtx| itself.|
|00002fb0| 20 20 2a 2f 0d 0d 23 64 | 65 66 69 6e 65 20 43 4f | */..#d|efine CO|
|00002fc0| 4e 53 54 5f 44 4f 55 42 | 4c 45 5f 4f 4b 5f 46 4f |NST_DOUB|LE_OK_FO|
|00002fd0| 52 5f 4c 45 54 54 45 52 | 5f 50 28 56 41 4c 55 45 |R_LETTER|_P(VALUE|
|00002fe0| 2c 20 43 29 20 20 5c 0d | 20 20 28 28 43 29 20 3d |, C) \.| ((C) =|
|00002ff0| 3d 20 27 47 27 20 3f 20 | 21 20 28 54 41 52 47 45 |= 'G' ? |! (TARGE|
|00003000| 54 5f 38 30 33 38 37 20 | 26 26 20 73 74 61 6e 64 |T_80387 |&& stand|
|00003010| 61 72 64 5f 38 30 33 38 | 37 5f 63 6f 6e 73 74 61 |ard_8038|7_consta|
|00003020| 6e 74 5f 70 20 28 56 41 | 4c 55 45 29 29 20 3a 20 |nt_p (VA|LUE)) : |
|00003030| 31 29 0d 0d 2f 2a 20 47 | 69 76 65 6e 20 61 6e 20 |1)../* G|iven an |
|00003040| 72 74 78 20 58 20 62 65 | 69 6e 67 20 72 65 6c 6f |rtx X be|ing relo|
|00003050| 61 64 65 64 20 69 6e 74 | 6f 20 61 20 72 65 67 20 |aded int|o a reg |
|00003060| 72 65 71 75 69 72 65 64 | 20 74 6f 20 62 65 0d 20 |required| to be. |
|00003070| 20 20 69 6e 20 63 6c 61 | 73 73 20 43 4c 41 53 53 | in cla|ss CLASS|
|00003080| 2c 20 72 65 74 75 72 6e | 20 74 68 65 20 63 6c 61 |, return| the cla|
|00003090| 73 73 20 6f 66 20 72 65 | 67 20 74 6f 20 61 63 74 |ss of re|g to act|
|000030a0| 75 61 6c 6c 79 20 75 73 | 65 2e 0d 20 20 20 49 6e |ually us|e.. In|
|000030b0| 20 67 65 6e 65 72 61 6c | 20 74 68 69 73 20 69 73 | general| this is|
|000030c0| 20 6a 75 73 74 20 43 4c | 41 53 53 3b 20 62 75 74 | just CL|ASS; but|
|000030d0| 20 6f 6e 20 73 6f 6d 65 | 20 6d 61 63 68 69 6e 65 | on some| machine|
|000030e0| 73 0d 20 20 20 69 6e 20 | 73 6f 6d 65 20 63 61 73 |s. in |some cas|
|000030f0| 65 73 20 69 74 20 69 73 | 20 70 72 65 66 65 72 61 |es it is| prefera|
|00003100| 62 6c 65 20 74 6f 20 75 | 73 65 20 61 20 6d 6f 72 |ble to u|se a mor|
|00003110| 65 20 72 65 73 74 72 69 | 63 74 69 76 65 20 63 6c |e restri|ctive cl|
|00003120| 61 73 73 2e 0d 20 20 20 | 4f 6e 20 74 68 65 20 38 |ass.. |On the 8|
|00003130| 30 33 38 36 20 73 65 72 | 69 65 73 2c 20 77 65 20 |0386 ser|ies, we |
|00003140| 70 72 65 76 65 6e 74 20 | 66 6c 6f 61 74 69 6e 67 |prevent |floating|
|00003150| 20 63 6f 6e 73 74 61 6e | 74 73 20 66 72 6f 6d 20 | constan|ts from |
|00003160| 62 65 69 6e 67 0d 20 20 | 20 72 65 6c 6f 61 64 65 |being. | reloade|
|00003170| 64 20 69 6e 74 6f 20 66 | 6c 6f 61 74 69 6e 67 20 |d into f|loating |
|00003180| 72 65 67 69 73 74 65 72 | 73 20 28 73 69 6e 63 65 |register|s (since|
|00003190| 20 6e 6f 20 6d 6f 76 65 | 2d 69 6e 73 6e 20 63 61 | no move|-insn ca|
|000031a0| 6e 20 64 6f 20 74 68 61 | 74 29 0d 20 20 20 61 6e |n do tha|t). an|
|000031b0| 64 20 77 65 20 65 6e 73 | 75 72 65 20 74 68 61 74 |d we ens|ure that|
|000031c0| 20 51 49 6d 6f 64 65 73 | 20 61 72 65 6e 27 74 20 | QImodes| aren't |
|000031d0| 72 65 6c 6f 61 64 65 64 | 20 69 6e 74 6f 20 74 68 |reloaded| into th|
|000031e0| 65 20 65 73 69 20 6f 72 | 20 65 64 69 20 72 65 67 |e esi or| edi reg|
|000031f0| 2e 20 20 2a 2f 0d 0d 23 | 64 65 66 69 6e 65 20 50 |. */..#|define P|
|00003200| 52 45 46 45 52 52 45 44 | 5f 52 45 4c 4f 41 44 5f |REFERRED|_RELOAD_|
|00003210| 43 4c 41 53 53 28 58 2c | 43 4c 41 53 53 29 09 09 |CLASS(X,|CLASS)..|
|00003220| 09 5c 0d 20 20 28 47 45 | 54 5f 43 4f 44 45 20 28 |.\. (GE|T_CODE (|
|00003230| 58 29 20 3d 3d 20 43 4f | 4e 53 54 5f 44 4f 55 42 |X) == CO|NST_DOUB|
|00003240| 4c 45 09 09 09 09 5c 0d | 20 20 20 3f 20 28 28 43 |LE....\.| ? ((C|
|00003250| 4c 41 53 53 29 20 3d 3d | 20 47 45 4e 45 52 41 4c |LASS) ==| GENERAL|
|00003260| 5f 52 45 47 53 20 7c 7c | 20 28 43 4c 41 53 53 29 |_REGS ||| (CLASS)|
|00003270| 20 3d 3d 20 41 4c 4c 5f | 52 45 47 53 09 5c 0d 20 | == ALL_|REGS.\. |
|00003280| 20 20 20 20 20 3f 20 47 | 45 4e 45 52 41 4c 5f 52 | ? G|ENERAL_R|
|00003290| 45 47 53 20 3a 20 4e 4f | 5f 52 45 47 53 29 09 09 |EGS : NO|_REGS)..|
|000032a0| 09 09 5c 0d 20 20 20 3a | 20 47 45 54 5f 4d 4f 44 |..\. :| GET_MOD|
|000032b0| 45 20 28 58 29 20 3d 3d | 20 51 49 6d 6f 64 65 09 |E (X) ==| QImode.|
|000032c0| 09 09 09 5c 0d 20 20 20 | 3f 20 28 28 43 4c 41 53 |...\. |? ((CLAS|
|000032d0| 53 29 20 3d 3d 20 47 45 | 4e 45 52 41 4c 5f 52 45 |S) == GE|NERAL_RE|
|000032e0| 47 53 20 7c 7c 20 28 43 | 4c 41 53 53 29 20 3d 3d |GS || (C|LASS) ==|
|000032f0| 20 41 4c 4c 5f 52 45 47 | 53 09 5c 0d 20 20 20 20 | ALL_REG|S.\. |
|00003300| 20 20 3f 20 51 5f 52 45 | 47 53 09 09 09 09 09 09 | ? Q_RE|GS......|
|00003310| 5c 0d 20 20 20 20 20 20 | 3a 20 28 43 4c 41 53 53 |\. |: (CLASS|
|00003320| 29 20 3d 3d 20 49 4e 44 | 45 58 5f 52 45 47 53 20 |) == IND|EX_REGS |
|00003330| 3f 20 28 61 62 6f 72 74 | 20 28 29 2c 20 49 4e 44 |? (abort| (), IND|
|00003340| 45 58 5f 52 45 47 53 29 | 09 5c 0d 20 20 20 20 20 |EX_REGS)|.\. |
|00003350| 20 3a 20 28 43 4c 41 53 | 53 29 29 09 09 09 09 09 | : (CLAS|S)).....|
|00003360| 5c 0d 20 20 20 3a 20 28 | 43 4c 41 53 53 29 29 0d |\. : (|CLASS)).|
|00003370| 0d 2f 2a 20 52 65 74 75 | 72 6e 20 74 68 65 20 6d |./* Retu|rn the m|
|00003380| 61 78 69 6d 75 6d 20 6e | 75 6d 62 65 72 20 6f 66 |aximum n|umber of|
|00003390| 20 63 6f 6e 73 65 63 75 | 74 69 76 65 20 72 65 67 | consecu|tive reg|
|000033a0| 69 73 74 65 72 73 0d 20 | 20 20 6e 65 65 64 65 64 |isters. | needed|
|000033b0| 20 74 6f 20 72 65 70 72 | 65 73 65 6e 74 20 6d 6f | to repr|esent mo|
|000033c0| 64 65 20 4d 4f 44 45 20 | 69 6e 20 61 20 72 65 67 |de MODE |in a reg|
|000033d0| 69 73 74 65 72 20 6f 66 | 20 63 6c 61 73 73 20 43 |ister of| class C|
|000033e0| 4c 41 53 53 2e 20 20 2a | 2f 0d 2f 2a 20 4f 6e 20 |LASS. *|/./* On |
|000033f0| 74 68 65 20 38 30 33 38 | 36 2c 20 74 68 69 73 20 |the 8038|6, this |
|00003400| 69 73 20 74 68 65 20 73 | 69 7a 65 20 6f 66 20 4d |is the s|ize of M|
|00003410| 4f 44 45 20 69 6e 20 77 | 6f 72 64 73 2c 0d 20 20 |ODE in w|ords,. |
|00003420| 20 65 78 63 65 70 74 20 | 69 6e 20 74 68 65 20 46 | except |in the F|
|00003430| 50 20 72 65 67 73 2c 20 | 77 68 65 72 65 20 61 20 |P regs, |where a |
|00003440| 73 69 6e 67 6c 65 20 72 | 65 67 20 69 73 20 61 6c |single r|eg is al|
|00003450| 77 61 79 73 20 65 6e 6f | 75 67 68 2e 20 20 2a 2f |ways eno|ugh. */|
|00003460| 0d 23 64 65 66 69 6e 65 | 20 43 4c 41 53 53 5f 4d |.#define| CLASS_M|
|00003470| 41 58 5f 4e 52 45 47 53 | 28 43 4c 41 53 53 2c 20 |AX_NREGS|(CLASS, |
|00003480| 4d 4f 44 45 29 09 5c 0d | 20 28 28 43 4c 41 53 53 |MODE).\.| ((CLASS|
|00003490| 29 20 3d 3d 20 46 4c 4f | 41 54 5f 52 45 47 53 20 |) == FLO|AT_REGS |
|000034a0| 3f 20 31 20 3a 09 09 09 | 5c 0d 20 20 20 28 28 47 |? 1 :...|\. ((G|
|000034b0| 45 54 5f 4d 4f 44 45 5f | 53 49 5a 45 20 28 4d 4f |ET_MODE_|SIZE (MO|
|000034c0| 44 45 29 20 2b 20 55 4e | 49 54 53 5f 50 45 52 5f |DE) + UN|ITS_PER_|
|000034d0| 57 4f 52 44 20 2d 20 31 | 29 20 2f 20 55 4e 49 54 |WORD - 1|) / UNIT|
|000034e0| 53 5f 50 45 52 5f 57 4f | 52 44 29 29 0d 0c 0d 2f |S_PER_WO|RD)).../|
|000034f0| 2a 20 53 74 61 63 6b 20 | 6c 61 79 6f 75 74 3b 20 |* Stack |layout; |
|00003500| 66 75 6e 63 74 69 6f 6e | 20 65 6e 74 72 79 2c 20 |function| entry, |
|00003510| 65 78 69 74 20 61 6e 64 | 20 63 61 6c 6c 69 6e 67 |exit and| calling|
|00003520| 2e 20 20 2a 2f 0d 0d 2f | 2a 20 44 65 66 69 6e 65 |. */../|* Define|
|00003530| 20 74 68 69 73 20 69 66 | 20 70 75 73 68 69 6e 67 | this if| pushing|
|00003540| 20 61 20 77 6f 72 64 20 | 6f 6e 20 74 68 65 20 73 | a word |on the s|
|00003550| 74 61 63 6b 0d 20 20 20 | 6d 61 6b 65 73 20 74 68 |tack. |makes th|
|00003560| 65 20 73 74 61 63 6b 20 | 70 6f 69 6e 74 65 72 20 |e stack |pointer |
|00003570| 61 20 73 6d 61 6c 6c 65 | 72 20 61 64 64 72 65 73 |a smalle|r addres|
|00003580| 73 2e 20 20 2a 2f 0d 23 | 64 65 66 69 6e 65 20 53 |s. */.#|define S|
|00003590| 54 41 43 4b 5f 47 52 4f | 57 53 5f 44 4f 57 4e 57 |TACK_GRO|WS_DOWNW|
|000035a0| 41 52 44 0d 0d 2f 2a 20 | 44 65 66 69 6e 65 20 74 |ARD../* |Define t|
|000035b0| 68 69 73 20 69 66 20 74 | 68 65 20 6e 6f 6d 69 6e |his if t|he nomin|
|000035c0| 61 6c 20 61 64 64 72 65 | 73 73 20 6f 66 20 74 68 |al addre|ss of th|
|000035d0| 65 20 73 74 61 63 6b 20 | 66 72 61 6d 65 0d 20 20 |e stack |frame. |
|000035e0| 20 69 73 20 61 74 20 74 | 68 65 20 68 69 67 68 2d | is at t|he high-|
|000035f0| 61 64 64 72 65 73 73 20 | 65 6e 64 20 6f 66 20 74 |address |end of t|
|00003600| 68 65 20 6c 6f 63 61 6c | 20 76 61 72 69 61 62 6c |he local| variabl|
|00003610| 65 73 3b 0d 20 20 20 74 | 68 61 74 20 69 73 2c 20 |es;. t|hat is, |
|00003620| 65 61 63 68 20 61 64 64 | 69 74 69 6f 6e 61 6c 20 |each add|itional |
|00003630| 6c 6f 63 61 6c 20 76 61 | 72 69 61 62 6c 65 20 61 |local va|riable a|
|00003640| 6c 6c 6f 63 61 74 65 64 | 0d 20 20 20 67 6f 65 73 |llocated|. goes|
|00003650| 20 61 74 20 61 20 6d 6f | 72 65 20 6e 65 67 61 74 | at a mo|re negat|
|00003660| 69 76 65 20 6f 66 66 73 | 65 74 20 69 6e 20 74 68 |ive offs|et in th|
|00003670| 65 20 66 72 61 6d 65 2e | 20 20 2a 2f 0d 23 64 65 |e frame.| */.#de|
|00003680| 66 69 6e 65 20 46 52 41 | 4d 45 5f 47 52 4f 57 53 |fine FRA|ME_GROWS|
|00003690| 5f 44 4f 57 4e 57 41 52 | 44 0d 0d 2f 2a 20 4f 66 |_DOWNWAR|D../* Of|
|000036a0| 66 73 65 74 20 77 69 74 | 68 69 6e 20 73 74 61 63 |fset wit|hin stac|
|000036b0| 6b 20 66 72 61 6d 65 20 | 74 6f 20 73 74 61 72 74 |k frame |to start|
|000036c0| 20 61 6c 6c 6f 63 61 74 | 69 6e 67 20 6c 6f 63 61 | allocat|ing loca|
|000036d0| 6c 20 76 61 72 69 61 62 | 6c 65 73 20 61 74 2e 0d |l variab|les at..|
|000036e0| 20 20 20 49 66 20 46 52 | 41 4d 45 5f 47 52 4f 57 | If FR|AME_GROW|
|000036f0| 53 5f 44 4f 57 4e 57 41 | 52 44 2c 20 74 68 69 73 |S_DOWNWA|RD, this|
|00003700| 20 69 73 20 74 68 65 20 | 6f 66 66 73 65 74 20 74 | is the |offset t|
|00003710| 6f 20 74 68 65 20 45 4e | 44 20 6f 66 20 74 68 65 |o the EN|D of the|
|00003720| 0d 20 20 20 66 69 72 73 | 74 20 6c 6f 63 61 6c 20 |. firs|t local |
|00003730| 61 6c 6c 6f 63 61 74 65 | 64 2e 20 20 4f 74 68 65 |allocate|d. Othe|
|00003740| 72 77 69 73 65 2c 20 69 | 74 20 69 73 20 74 68 65 |rwise, i|t is the|
|00003750| 20 6f 66 66 73 65 74 20 | 74 6f 20 74 68 65 20 42 | offset |to the B|
|00003760| 45 47 49 4e 4e 49 4e 47 | 0d 20 20 20 6f 66 20 74 |EGINNING|. of t|
|00003770| 68 65 20 66 69 72 73 74 | 20 6c 6f 63 61 6c 20 61 |he first| local a|
|00003780| 6c 6c 6f 63 61 74 65 64 | 2e 20 20 2a 2f 0d 23 64 |llocated|. */.#d|
|00003790| 65 66 69 6e 65 20 53 54 | 41 52 54 49 4e 47 5f 46 |efine ST|ARTING_F|
|000037a0| 52 41 4d 45 5f 4f 46 46 | 53 45 54 20 30 0d 0d 2f |RAME_OFF|SET 0../|
|000037b0| 2a 20 49 66 20 77 65 20 | 67 65 6e 65 72 61 74 65 |* If we |generate|
|000037c0| 20 61 6e 20 69 6e 73 6e | 20 74 6f 20 70 75 73 68 | an insn| to push|
|000037d0| 20 42 59 54 45 53 20 62 | 79 74 65 73 2c 0d 20 20 | BYTES b|ytes,. |
|000037e0| 20 74 68 69 73 20 73 61 | 79 73 20 68 6f 77 20 6d | this sa|ys how m|
|000037f0| 61 6e 79 20 74 68 65 20 | 73 74 61 63 6b 20 70 6f |any the |stack po|
|00003800| 69 6e 74 65 72 20 72 65 | 61 6c 6c 79 20 61 64 76 |inter re|ally adv|
|00003810| 61 6e 63 65 73 20 62 79 | 2e 0d 20 20 20 4f 6e 20 |ances by|.. On |
|00003820| 33 38 36 20 70 75 73 68 | 77 20 64 65 63 72 65 6d |386 push|w decrem|
|00003830| 65 6e 74 73 20 62 79 20 | 65 78 61 63 74 6c 79 20 |ents by |exactly |
|00003840| 32 20 6e 6f 20 6d 61 74 | 74 65 72 20 77 68 61 74 |2 no mat|ter what|
|00003850| 20 74 68 65 20 70 6f 73 | 69 74 69 6f 6e 20 77 61 | the pos|ition wa|
|00003860| 73 2e 0d 20 20 20 4f 6e | 20 74 68 65 20 33 38 36 |s.. On| the 386|
|00003870| 20 74 68 65 72 65 20 69 | 73 20 6e 6f 20 70 75 73 | there i|s no pus|
|00003880| 68 62 3b 20 77 65 20 75 | 73 65 20 70 75 73 68 77 |hb; we u|se pushw|
|00003890| 20 69 6e 73 74 65 61 64 | 2c 20 61 6e 64 20 74 68 | instead|, and th|
|000038a0| 69 73 0d 20 20 20 68 61 | 73 20 74 68 65 20 65 66 |is. ha|s the ef|
|000038b0| 66 65 63 74 20 6f 66 20 | 72 6f 75 6e 64 69 6e 67 |fect of |rounding|
|000038c0| 20 75 70 20 74 6f 20 32 | 2e 20 20 2a 2f 0d 0d 23 | up to 2|. */..#|
|000038d0| 64 65 66 69 6e 65 20 50 | 55 53 48 5f 52 4f 55 4e |define P|USH_ROUN|
|000038e0| 44 49 4e 47 28 42 59 54 | 45 53 29 20 28 28 28 42 |DING(BYT|ES) (((B|
|000038f0| 59 54 45 53 29 20 2b 20 | 31 29 20 26 20 28 2d 32 |YTES) + |1) & (-2|
|00003900| 29 29 0d 0d 2f 2a 20 4f | 66 66 73 65 74 20 6f 66 |))../* O|ffset of|
|00003910| 20 66 69 72 73 74 20 70 | 61 72 61 6d 65 74 65 72 | first p|arameter|
|00003920| 20 66 72 6f 6d 20 74 68 | 65 20 61 72 67 75 6d 65 | from th|e argume|
|00003930| 6e 74 20 70 6f 69 6e 74 | 65 72 20 72 65 67 69 73 |nt point|er regis|
|00003940| 74 65 72 20 76 61 6c 75 | 65 2e 20 20 2a 2f 0d 23 |ter valu|e. */.#|
|00003950| 64 65 66 69 6e 65 20 46 | 49 52 53 54 5f 50 41 52 |define F|IRST_PAR|
|00003960| 4d 5f 4f 46 46 53 45 54 | 28 46 4e 44 45 43 4c 29 |M_OFFSET|(FNDECL)|
|00003970| 20 38 0d 0d 2f 2a 20 56 | 61 6c 75 65 20 69 73 20 | 8../* V|alue is |
|00003980| 31 20 69 66 20 72 65 74 | 75 72 6e 69 6e 67 20 66 |1 if ret|urning f|
|00003990| 72 6f 6d 20 61 20 66 75 | 6e 63 74 69 6f 6e 20 63 |rom a fu|nction c|
|000039a0| 61 6c 6c 20 61 75 74 6f | 6d 61 74 69 63 61 6c 6c |all auto|maticall|
|000039b0| 79 0d 20 20 20 70 6f 70 | 73 20 74 68 65 20 61 72 |y. pop|s the ar|
|000039c0| 67 75 6d 65 6e 74 73 20 | 64 65 73 63 72 69 62 65 |guments |describe|
|000039d0| 64 20 62 79 20 74 68 65 | 20 6e 75 6d 62 65 72 2d |d by the| number-|
|000039e0| 6f 66 2d 61 72 67 73 20 | 66 69 65 6c 64 20 69 6e |of-args |field in|
|000039f0| 20 74 68 65 20 63 61 6c | 6c 2e 0d 20 20 20 46 55 | the cal|l.. FU|
|00003a00| 4e 54 59 50 45 20 69 73 | 20 74 68 65 20 64 61 74 |NTYPE is| the dat|
|00003a10| 61 20 74 79 70 65 20 6f | 66 20 74 68 65 20 66 75 |a type o|f the fu|
|00003a20| 6e 63 74 69 6f 6e 20 28 | 61 73 20 61 20 74 72 65 |nction (|as a tre|
|00003a30| 65 29 2c 0d 20 20 20 6f | 72 20 66 6f 72 20 61 20 |e),. o|r for a |
|00003a40| 6c 69 62 72 61 72 79 20 | 63 61 6c 6c 20 69 74 20 |library |call it |
|00003a50| 69 73 20 61 6e 20 69 64 | 65 6e 74 69 66 69 65 72 |is an id|entifier|
|00003a60| 20 6e 6f 64 65 20 66 6f | 72 20 74 68 65 20 73 75 | node fo|r the su|
|00003a70| 62 72 6f 75 74 69 6e 65 | 20 6e 61 6d 65 2e 0d 0d |broutine| name...|
|00003a80| 20 20 20 4f 6e 20 74 68 | 65 20 38 30 33 38 36 2c | On th|e 80386,|
|00003a90| 20 74 68 65 20 52 54 44 | 20 69 6e 73 6e 20 6d 61 | the RTD| insn ma|
|00003aa0| 79 20 62 65 20 75 73 65 | 64 20 74 6f 20 70 6f 70 |y be use|d to pop|
|00003ab0| 20 74 68 65 6d 20 69 66 | 20 74 68 65 20 6e 75 6d | them if| the num|
|00003ac0| 62 65 72 0d 20 20 20 20 | 20 6f 66 20 61 72 67 73 |ber. | of args|
|00003ad0| 20 69 73 20 66 69 78 65 | 64 2c 20 62 75 74 20 69 | is fixe|d, but i|
|00003ae0| 66 20 74 68 65 20 6e 75 | 6d 62 65 72 20 69 73 20 |f the nu|mber is |
|00003af0| 76 61 72 69 61 62 6c 65 | 20 74 68 65 6e 20 74 68 |variable| then th|
|00003b00| 65 20 63 61 6c 6c 65 72 | 0d 20 20 20 20 20 6d 75 |e caller|. mu|
|00003b10| 73 74 20 70 6f 70 20 74 | 68 65 6d 20 61 6c 6c 2e |st pop t|hem all.|
|00003b20| 20 20 52 54 44 20 63 61 | 6e 27 74 20 62 65 20 75 | RTD ca|n't be u|
|00003b30| 73 65 64 20 66 6f 72 20 | 6c 69 62 72 61 72 79 20 |sed for |library |
|00003b40| 63 61 6c 6c 73 20 6e 6f | 77 0d 20 20 20 20 20 62 |calls no|w. b|
|00003b50| 65 63 61 75 73 65 20 74 | 68 65 20 6c 69 62 72 61 |ecause t|he libra|
|00003b60| 72 79 20 69 73 20 63 6f | 6d 70 69 6c 65 64 20 77 |ry is co|mpiled w|
|00003b70| 69 74 68 20 74 68 65 20 | 55 6e 69 78 20 63 6f 6d |ith the |Unix com|
|00003b80| 70 69 6c 65 72 2e 0d 20 | 20 20 55 73 65 20 6f 66 |piler.. | Use of|
|00003b90| 20 52 54 44 20 69 73 20 | 61 20 73 65 6c 65 63 74 | RTD is |a select|
|00003ba0| 61 62 6c 65 20 6f 70 74 | 69 6f 6e 2c 20 73 69 6e |able opt|ion, sin|
|00003bb0| 63 65 20 69 74 20 69 73 | 20 69 6e 63 6f 6d 70 61 |ce it is| incompa|
|00003bc0| 74 69 62 6c 65 20 77 69 | 74 68 0d 20 20 20 73 74 |tible wi|th. st|
|00003bd0| 61 6e 64 61 72 64 20 55 | 6e 69 78 20 63 61 6c 6c |andard U|nix call|
|00003be0| 69 6e 67 20 73 65 71 75 | 65 6e 63 65 73 2e 20 20 |ing sequ|ences. |
|00003bf0| 49 66 20 74 68 65 20 6f | 70 74 69 6f 6e 20 69 73 |If the o|ption is|
|00003c00| 20 6e 6f 74 20 73 65 6c | 65 63 74 65 64 2c 0d 20 | not sel|ected,. |
|00003c10| 20 20 74 68 65 20 63 61 | 6c 6c 65 72 20 6d 75 73 | the ca|ller mus|
|00003c20| 74 20 61 6c 77 61 79 73 | 20 70 6f 70 20 74 68 65 |t always| pop the|
|00003c30| 20 61 72 67 73 2e 20 20 | 2a 2f 0d 0d 23 64 65 66 | args. |*/..#def|
|00003c40| 69 6e 65 20 52 45 54 55 | 52 4e 5f 50 4f 50 53 5f |ine RETU|RN_POPS_|
|00003c50| 41 52 47 53 28 46 55 4e | 54 59 50 45 29 20 20 20 |ARGS(FUN|TYPE) |
|00003c60| 5c 0d 20 20 28 54 41 52 | 47 45 54 5f 52 54 44 20 |\. (TAR|GET_RTD |
|00003c70| 26 26 20 54 52 45 45 5f | 43 4f 44 45 20 28 46 55 |&& TREE_|CODE (FU|
|00003c80| 4e 54 59 50 45 29 20 21 | 3d 20 49 44 45 4e 54 49 |NTYPE) !|= IDENTI|
|00003c90| 46 49 45 52 5f 4e 4f 44 | 45 09 09 5c 0d 20 20 20 |FIER_NOD|E..\. |
|00003ca0| 26 26 20 28 54 59 50 45 | 5f 41 52 47 5f 54 59 50 |&& (TYPE|_ARG_TYP|
|00003cb0| 45 53 20 28 46 55 4e 54 | 59 50 45 29 20 3d 3d 20 |ES (FUNT|YPE) == |
|00003cc0| 30 09 09 09 09 5c 0d 20 | 20 20 20 20 20 20 7c 7c |0....\. | |||
|00003cd0| 20 54 52 45 45 5f 56 41 | 4c 55 45 20 28 74 72 65 | TREE_VA|LUE (tre|
|00003ce0| 65 5f 6c 61 73 74 20 28 | 54 59 50 45 5f 41 52 47 |e_last (|TYPE_ARG|
|00003cf0| 5f 54 59 50 45 53 20 28 | 46 55 4e 54 59 50 45 29 |_TYPES (|FUNTYPE)|
|00003d00| 29 29 20 3d 3d 20 76 6f | 69 64 5f 74 79 70 65 5f |)) == vo|id_type_|
|00003d10| 6e 6f 64 65 29 29 0d 0d | 23 64 65 66 69 6e 65 20 |node))..|#define |
|00003d20| 46 55 4e 43 54 49 4f 4e | 5f 56 41 4c 55 45 28 56 |FUNCTION|_VALUE(V|
|00003d30| 41 4c 54 59 50 45 2c 20 | 46 55 4e 43 29 20 20 5c |ALTYPE, |FUNC) \|
|00003d40| 0d 20 20 20 67 65 6e 5f | 72 74 78 20 28 52 45 47 |. gen_|rtx (REG|
|00003d50| 2c 20 54 59 50 45 5f 4d | 4f 44 45 20 28 56 41 4c |, TYPE_M|ODE (VAL|
|00003d60| 54 59 50 45 29 2c 20 5c | 0d 09 20 20 20 20 56 41 |TYPE), \|.. VA|
|00003d70| 4c 55 45 5f 52 45 47 4e | 4f 28 54 59 50 45 5f 4d |LUE_REGN|O(TYPE_M|
|00003d80| 4f 44 45 28 56 41 4c 54 | 59 50 45 29 29 29 0d 0d |ODE(VALT|YPE)))..|
|00003d90| 2f 2a 20 44 65 66 69 6e | 65 20 68 6f 77 20 74 6f |/* Defin|e how to|
|00003da0| 20 66 69 6e 64 20 74 68 | 65 20 76 61 6c 75 65 20 | find th|e value |
|00003db0| 72 65 74 75 72 6e 65 64 | 20 62 79 20 61 20 6c 69 |returned| by a li|
|00003dc0| 62 72 61 72 79 20 66 75 | 6e 63 74 69 6f 6e 0d 20 |brary fu|nction. |
|00003dd0| 20 20 61 73 73 75 6d 69 | 6e 67 20 74 68 65 20 76 | assumi|ng the v|
|00003de0| 61 6c 75 65 20 68 61 73 | 20 6d 6f 64 65 20 4d 4f |alue has| mode MO|
|00003df0| 44 45 2e 20 20 2a 2f 0d | 0d 23 64 65 66 69 6e 65 |DE. */.|.#define|
|00003e00| 20 4c 49 42 43 41 4c 4c | 5f 56 41 4c 55 45 28 4d | LIBCALL|_VALUE(M|
|00003e10| 4f 44 45 29 20 5c 0d 20 | 20 67 65 6e 5f 72 74 78 |ODE) \. | gen_rtx|
|00003e20| 20 28 52 45 47 2c 20 4d | 4f 44 45 2c 20 56 41 4c | (REG, M|ODE, VAL|
|00003e30| 55 45 5f 52 45 47 4e 4f | 28 4d 4f 44 45 29 29 0d |UE_REGNO|(MODE)).|
|00003e40| 0d 2f 2a 20 31 20 69 66 | 20 4e 20 69 73 20 61 20 |./* 1 if| N is a |
|00003e50| 70 6f 73 73 69 62 6c 65 | 20 72 65 67 69 73 74 65 |possible| registe|
|00003e60| 72 20 6e 75 6d 62 65 72 | 20 66 6f 72 20 66 75 6e |r number| for fun|
|00003e70| 63 74 69 6f 6e 20 61 72 | 67 75 6d 65 6e 74 20 70 |ction ar|gument p|
|00003e80| 61 73 73 69 6e 67 2e 0d | 20 20 20 4f 6e 20 74 68 |assing..| On th|
|00003e90| 65 20 38 30 33 38 36 2c | 20 6e 6f 20 72 65 67 69 |e 80386,| no regi|
|00003ea0| 73 74 65 72 73 20 61 72 | 65 20 75 73 65 64 20 69 |sters ar|e used i|
|00003eb0| 6e 20 74 68 69 73 20 77 | 61 79 2e 0d 20 20 20 20 |n this w|ay.. |
|00003ec0| 20 20 2a 4e 4f 54 45 2a | 20 2d 6d 72 65 67 70 61 | *NOTE*| -mregpa|
|00003ed0| 72 6d 20 64 6f 65 73 20 | 6e 6f 74 20 77 6f 72 6b |rm does |not work|
|00003ee0| 2e 0d 20 20 20 49 74 20 | 65 78 69 73 74 73 20 6f |.. It |exists o|
|00003ef0| 6e 6c 79 20 74 6f 20 74 | 65 73 74 20 72 65 67 69 |nly to t|est regi|
|00003f00| 73 74 65 72 20 63 61 6c | 6c 69 6e 67 20 63 6f 6e |ster cal|ling con|
|00003f10| 76 65 6e 74 69 6f 6e 73 | 2e 20 20 2a 2f 0d 0d 23 |ventions|. */..#|
|00003f20| 64 65 66 69 6e 65 20 46 | 55 4e 43 54 49 4f 4e 5f |define F|UNCTION_|
|00003f30| 41 52 47 5f 52 45 47 4e | 4f 5f 50 28 4e 29 20 30 |ARG_REGN|O_P(N) 0|
|00003f40| 0d 2f 2a 20 44 65 66 69 | 6e 65 20 61 20 64 61 74 |./* Defi|ne a dat|
|00003f50| 61 20 74 79 70 65 20 66 | 6f 72 20 72 65 63 6f 72 |a type f|or recor|
|00003f60| 64 69 6e 67 20 69 6e 66 | 6f 20 61 62 6f 75 74 20 |ding inf|o about |
|00003f70| 61 6e 20 61 72 67 75 6d | 65 6e 74 20 6c 69 73 74 |an argum|ent list|
|00003f80| 0d 20 20 20 64 75 72 69 | 6e 67 20 74 68 65 20 73 |. duri|ng the s|
|00003f90| 63 61 6e 20 6f 66 20 74 | 68 61 74 20 61 72 67 75 |can of t|hat argu|
|00003fa0| 6d 65 6e 74 20 6c 69 73 | 74 2e 20 20 54 68 69 73 |ment lis|t. This|
|00003fb0| 20 64 61 74 61 20 74 79 | 70 65 20 73 68 6f 75 6c | data ty|pe shoul|
|00003fc0| 64 0d 20 20 20 68 6f 6c | 64 20 61 6c 6c 20 6e 65 |d. hol|d all ne|
|00003fd0| 63 65 73 73 61 72 79 20 | 69 6e 66 6f 72 6d 61 74 |cessary |informat|
|00003fe0| 69 6f 6e 20 61 62 6f 75 | 74 20 74 68 65 20 66 75 |ion abou|t the fu|
|00003ff0| 6e 63 74 69 6f 6e 20 69 | 74 73 65 6c 66 0d 20 20 |nction i|tself. |
|00004000| 20 61 6e 64 20 61 62 6f | 75 74 20 74 68 65 20 61 | and abo|ut the a|
|00004010| 72 67 73 20 70 72 6f 63 | 65 73 73 65 64 20 73 6f |rgs proc|essed so|
|00004020| 20 66 61 72 2c 20 65 6e | 6f 75 67 68 20 74 6f 20 | far, en|ough to |
|00004030| 65 6e 61 62 6c 65 20 6d | 61 63 72 6f 73 0d 20 20 |enable m|acros. |
|00004040| 20 73 75 63 68 20 61 73 | 20 46 55 4e 43 54 49 4f | such as| FUNCTIO|
|00004050| 4e 5f 41 52 47 20 74 6f | 20 64 65 74 65 72 6d 69 |N_ARG to| determi|
|00004060| 6e 65 20 77 68 65 72 65 | 20 74 68 65 20 6e 65 78 |ne where| the nex|
|00004070| 74 20 61 72 67 20 73 68 | 6f 75 6c 64 20 67 6f 2e |t arg sh|ould go.|
|00004080| 0d 0d 20 20 20 4f 6e 20 | 74 68 65 20 38 30 33 38 |.. On |the 8038|
|00004090| 36 2c 20 74 68 69 73 20 | 69 73 20 61 20 73 69 6e |6, this |is a sin|
|000040a0| 67 6c 65 20 69 6e 74 65 | 67 65 72 2c 20 77 68 69 |gle inte|ger, whi|
|000040b0| 63 68 20 69 73 20 61 20 | 6e 75 6d 62 65 72 20 6f |ch is a |number o|
|000040c0| 66 20 62 79 74 65 73 0d | 20 20 20 6f 66 20 61 72 |f bytes.| of ar|
|000040d0| 67 75 6d 65 6e 74 73 20 | 73 63 61 6e 6e 65 64 20 |guments |scanned |
|000040e0| 73 6f 20 66 61 72 2e 20 | 20 2a 2f 0d 0d 23 64 65 |so far. | */..#de|
|000040f0| 66 69 6e 65 20 43 55 4d | 55 4c 41 54 49 56 45 5f |fine CUM|ULATIVE_|
|00004100| 41 52 47 53 20 69 6e 74 | 0d 0d 2f 2a 20 49 6e 69 |ARGS int|../* Ini|
|00004110| 74 69 61 6c 69 7a 65 20 | 61 20 76 61 72 69 61 62 |tialize |a variab|
|00004120| 6c 65 20 43 55 4d 20 6f | 66 20 74 79 70 65 20 43 |le CUM o|f type C|
|00004130| 55 4d 55 4c 41 54 49 56 | 45 5f 41 52 47 53 0d 20 |UMULATIV|E_ARGS. |
|00004140| 20 20 66 6f 72 20 61 20 | 63 61 6c 6c 20 74 6f 20 | for a |call to |
|00004150| 61 20 66 75 6e 63 74 69 | 6f 6e 20 77 68 6f 73 65 |a functi|on whose|
|00004160| 20 64 61 74 61 20 74 79 | 70 65 20 69 73 20 46 4e | data ty|pe is FN|
|00004170| 54 59 50 45 2e 0d 20 20 | 20 46 6f 72 20 61 20 6c |TYPE.. | For a l|
|00004180| 69 62 72 61 72 79 20 63 | 61 6c 6c 2c 20 46 4e 54 |ibrary c|all, FNT|
|00004190| 59 50 45 20 69 73 20 30 | 2e 0d 0d 20 20 20 4f 6e |YPE is 0|... On|
|000041a0| 20 74 68 65 20 38 30 33 | 38 36 2c 20 74 68 65 20 | the 803|86, the |
|000041b0| 6f 66 66 73 65 74 20 73 | 74 61 72 74 73 20 61 74 |offset s|tarts at|
|000041c0| 20 30 2e 20 20 2a 2f 0d | 0d 23 64 65 66 69 6e 65 | 0. */.|.#define|
|000041d0| 20 49 4e 49 54 5f 43 55 | 4d 55 4c 41 54 49 56 45 | INIT_CU|MULATIVE|
|000041e0| 5f 41 52 47 53 28 43 55 | 4d 2c 46 4e 54 59 50 45 |_ARGS(CU|M,FNTYPE|
|000041f0| 29 09 5c 0d 20 28 28 43 | 55 4d 29 20 3d 20 30 29 |).\. ((C|UM) = 0)|
|00004200| 0d 0d 2f 2a 20 55 70 64 | 61 74 65 20 74 68 65 20 |../* Upd|ate the |
|00004210| 64 61 74 61 20 69 6e 20 | 43 55 4d 20 74 6f 20 61 |data in |CUM to a|
|00004220| 64 76 61 6e 63 65 20 6f | 76 65 72 20 61 6e 20 61 |dvance o|ver an a|
|00004230| 72 67 75 6d 65 6e 74 0d | 20 20 20 6f 66 20 6d 6f |rgument.| of mo|
|00004240| 64 65 20 4d 4f 44 45 20 | 61 6e 64 20 64 61 74 61 |de MODE |and data|
|00004250| 20 74 79 70 65 20 54 59 | 50 45 2e 0d 20 20 20 28 | type TY|PE.. (|
|00004260| 54 59 50 45 20 69 73 20 | 6e 75 6c 6c 20 66 6f 72 |TYPE is |null for|
|00004270| 20 6c 69 62 63 61 6c 6c | 73 20 77 68 65 72 65 20 | libcall|s where |
|00004280| 74 68 61 74 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |that inf|ormation|
|00004290| 20 6d 61 79 20 6e 6f 74 | 20 62 65 20 61 76 61 69 | may not| be avai|
|000042a0| 6c 61 62 6c 65 2e 29 20 | 20 2a 2f 0d 0d 23 64 65 |lable.) | */..#de|
|000042b0| 66 69 6e 65 20 46 55 4e | 43 54 49 4f 4e 5f 41 52 |fine FUN|CTION_AR|
|000042c0| 47 5f 41 44 56 41 4e 43 | 45 28 43 55 4d 2c 20 4d |G_ADVANC|E(CUM, M|
|000042d0| 4f 44 45 2c 20 54 59 50 | 45 2c 20 4e 41 4d 45 44 |ODE, TYP|E, NAMED|
|000042e0| 29 09 5c 0d 20 28 28 43 | 55 4d 29 20 2b 3d 20 28 |).\. ((C|UM) += (|
|000042f0| 28 4d 4f 44 45 29 20 21 | 3d 20 42 4c 4b 6d 6f 64 |(MODE) !|= BLKmod|
|00004300| 65 09 09 09 5c 0d 09 20 | 20 20 20 3f 20 28 47 45 |e...\.. | ? (GE|
|00004310| 54 5f 4d 4f 44 45 5f 53 | 49 5a 45 20 28 4d 4f 44 |T_MODE_S|IZE (MOD|
|00004320| 45 29 20 2b 20 33 29 20 | 26 20 7e 33 09 5c 0d 09 |E) + 3) |& ~3.\..|
|00004330| 20 20 20 20 3a 20 28 69 | 6e 74 5f 73 69 7a 65 5f | : (i|nt_size_|
|00004340| 69 6e 5f 62 79 74 65 73 | 20 28 54 59 50 45 29 20 |in_bytes| (TYPE) |
|00004350| 2b 20 33 29 20 26 20 7e | 33 29 29 0d 0d 2f 2a 20 |+ 3) & ~|3))../* |
|00004360| 44 65 66 69 6e 65 20 77 | 68 65 72 65 20 74 6f 20 |Define w|here to |
|00004370| 70 75 74 20 74 68 65 20 | 61 72 67 75 6d 65 6e 74 |put the |argument|
|00004380| 73 20 74 6f 20 61 20 66 | 75 6e 63 74 69 6f 6e 2e |s to a f|unction.|
|00004390| 0d 20 20 20 56 61 6c 75 | 65 20 69 73 20 7a 65 72 |. Valu|e is zer|
|000043a0| 6f 20 74 6f 20 70 75 73 | 68 20 74 68 65 20 61 72 |o to pus|h the ar|
|000043b0| 67 75 6d 65 6e 74 20 6f | 6e 20 74 68 65 20 73 74 |gument o|n the st|
|000043c0| 61 63 6b 2c 0d 20 20 20 | 6f 72 20 61 20 68 61 72 |ack,. |or a har|
|000043d0| 64 20 72 65 67 69 73 74 | 65 72 20 69 6e 20 77 68 |d regist|er in wh|
|000043e0| 69 63 68 20 74 6f 20 73 | 74 6f 72 65 20 74 68 65 |ich to s|tore the|
|000043f0| 20 61 72 67 75 6d 65 6e | 74 2e 0d 0d 20 20 20 4d | argumen|t... M|
|00004400| 4f 44 45 20 69 73 20 74 | 68 65 20 61 72 67 75 6d |ODE is t|he argum|
|00004410| 65 6e 74 27 73 20 6d 61 | 63 68 69 6e 65 20 6d 6f |ent's ma|chine mo|
|00004420| 64 65 2e 0d 20 20 20 54 | 59 50 45 20 69 73 20 74 |de.. T|YPE is t|
|00004430| 68 65 20 64 61 74 61 20 | 74 79 70 65 20 6f 66 20 |he data |type of |
|00004440| 74 68 65 20 61 72 67 75 | 6d 65 6e 74 20 28 61 73 |the argu|ment (as|
|00004450| 20 61 20 74 72 65 65 29 | 2e 0d 20 20 20 20 54 68 | a tree)|.. Th|
|00004460| 69 73 20 69 73 20 6e 75 | 6c 6c 20 66 6f 72 20 6c |is is nu|ll for l|
|00004470| 69 62 63 61 6c 6c 73 20 | 77 68 65 72 65 20 74 68 |ibcalls |where th|
|00004480| 61 74 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 6d |at infor|mation m|
|00004490| 61 79 0d 20 20 20 20 6e | 6f 74 20 62 65 20 61 76 |ay. n|ot be av|
|000044a0| 61 69 6c 61 62 6c 65 2e | 0d 20 20 20 43 55 4d 20 |ailable.|. CUM |
|000044b0| 69 73 20 61 20 76 61 72 | 69 61 62 6c 65 20 6f 66 |is a var|iable of|
|000044c0| 20 74 79 70 65 20 43 55 | 4d 55 4c 41 54 49 56 45 | type CU|MULATIVE|
|000044d0| 5f 41 52 47 53 20 77 68 | 69 63 68 20 67 69 76 65 |_ARGS wh|ich give|
|000044e0| 73 20 69 6e 66 6f 20 61 | 62 6f 75 74 0d 20 20 20 |s info a|bout. |
|000044f0| 20 74 68 65 20 70 72 65 | 63 65 64 69 6e 67 20 61 | the pre|ceding a|
|00004500| 72 67 73 20 61 6e 64 20 | 61 62 6f 75 74 20 74 68 |rgs and |about th|
|00004510| 65 20 66 75 6e 63 74 69 | 6f 6e 20 62 65 69 6e 67 |e functi|on being|
|00004520| 20 63 61 6c 6c 65 64 2e | 0d 20 20 20 4e 41 4d 45 | called.|. NAME|
|00004530| 44 20 69 73 20 6e 6f 6e | 7a 65 72 6f 20 69 66 20 |D is non|zero if |
|00004540| 74 68 69 73 20 61 72 67 | 75 6d 65 6e 74 20 69 73 |this arg|ument is|
|00004550| 20 61 20 6e 61 6d 65 64 | 20 70 61 72 61 6d 65 74 | a named| paramet|
|00004560| 65 72 0d 20 20 20 20 28 | 6f 74 68 65 72 77 69 73 |er. (|otherwis|
|00004570| 65 20 69 74 20 69 73 20 | 61 6e 20 65 78 74 72 61 |e it is |an extra|
|00004580| 20 70 61 72 61 6d 65 74 | 65 72 20 6d 61 74 63 68 | paramet|er match|
|00004590| 69 6e 67 20 61 6e 20 65 | 6c 6c 69 70 73 69 73 29 |ing an e|llipsis)|
|000045a0| 2e 20 20 2a 2f 0d 0d 0d | 2f 2a 20 4f 6e 20 74 68 |. */...|/* On th|
|000045b0| 65 20 38 30 33 38 36 20 | 61 6c 6c 20 61 72 67 73 |e 80386 |all args|
|000045c0| 20 61 72 65 20 70 75 73 | 68 65 64 2c 20 65 78 63 | are pus|hed, exc|
|000045d0| 65 70 74 20 69 66 20 2d | 6d 72 65 67 70 61 72 6d |ept if -|mregparm|
|000045e0| 20 69 73 20 73 70 65 63 | 69 66 69 65 64 0d 20 20 | is spec|ified. |
|000045f0| 20 74 68 65 6e 20 74 68 | 65 20 66 69 72 73 74 20 | then th|e first |
|00004600| 74 77 6f 20 77 6f 72 64 | 73 20 6f 66 20 61 72 67 |two word|s of arg|
|00004610| 75 6d 65 6e 74 73 20 61 | 72 65 20 70 61 73 73 65 |uments a|re passe|
|00004620| 64 20 69 6e 20 45 41 58 | 2c 20 45 44 58 2e 0d 20 |d in EAX|, EDX.. |
|00004630| 20 20 2a 4e 4f 54 45 2a | 20 2d 6d 72 65 67 70 61 | *NOTE*| -mregpa|
|00004640| 72 6d 20 64 6f 65 73 20 | 6e 6f 74 20 77 6f 72 6b |rm does |not work|
|00004650| 2e 0d 20 20 20 49 74 20 | 65 78 69 73 74 73 20 6f |.. It |exists o|
|00004660| 6e 6c 79 20 74 6f 20 74 | 65 73 74 20 72 65 67 69 |nly to t|est regi|
|00004670| 73 74 65 72 20 63 61 6c | 6c 69 6e 67 20 63 6f 6e |ster cal|ling con|
|00004680| 76 65 6e 74 69 6f 6e 73 | 2e 20 20 2a 2f 0d 0d 23 |ventions|. */..#|
|00004690| 64 65 66 69 6e 65 20 46 | 55 4e 43 54 49 4f 4e 5f |define F|UNCTION_|
|000046a0| 41 52 47 28 43 55 4d 2c | 20 4d 4f 44 45 2c 20 54 |ARG(CUM,| MODE, T|
|000046b0| 59 50 45 2c 20 4e 41 4d | 45 44 29 20 5c 0d 28 28 |YPE, NAM|ED) \.((|
|000046c0| 54 41 52 47 45 54 5f 52 | 45 47 50 41 52 4d 20 26 |TARGET_R|EGPARM &|
|000046d0| 26 20 28 43 55 4d 29 20 | 3c 20 38 29 20 3f 20 67 |& (CUM) |< 8) ? g|
|000046e0| 65 6e 5f 72 74 78 20 28 | 52 45 47 2c 20 28 4d 4f |en_rtx (|REG, (MO|
|000046f0| 44 45 29 2c 20 28 43 55 | 4d 29 20 2f 20 34 29 20 |DE), (CU|M) / 4) |
|00004700| 3a 20 30 29 0d 0d 2f 2a | 20 46 6f 72 20 61 6e 20 |: 0)../*| For an |
|00004710| 61 72 67 20 70 61 73 73 | 65 64 20 70 61 72 74 6c |arg pass|ed partl|
|00004720| 79 20 69 6e 20 72 65 67 | 69 73 74 65 72 73 20 61 |y in reg|isters a|
|00004730| 6e 64 20 70 61 72 74 6c | 79 20 69 6e 20 6d 65 6d |nd partl|y in mem|
|00004740| 6f 72 79 2c 0d 20 20 20 | 74 68 69 73 20 69 73 20 |ory,. |this is |
|00004750| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 72 65 |the numb|er of re|
|00004760| 67 69 73 74 65 72 73 20 | 75 73 65 64 2e 0d 20 20 |gisters |used.. |
|00004770| 20 46 6f 72 20 61 72 67 | 73 20 70 61 73 73 65 64 | For arg|s passed|
|00004780| 20 65 6e 74 69 72 65 6c | 79 20 69 6e 20 72 65 67 | entirel|y in reg|
|00004790| 69 73 74 65 72 73 20 6f | 72 20 65 6e 74 69 72 65 |isters o|r entire|
|000047a0| 6c 79 20 69 6e 20 6d 65 | 6d 6f 72 79 2c 20 7a 65 |ly in me|mory, ze|
|000047b0| 72 6f 2e 20 20 2a 2f 0d | 0d 0d 23 64 65 66 69 6e |ro. */.|..#defin|
|000047c0| 65 20 46 55 4e 43 54 49 | 4f 4e 5f 41 52 47 5f 50 |e FUNCTI|ON_ARG_P|
|000047d0| 41 52 54 49 41 4c 5f 4e | 52 45 47 53 28 43 55 4d |ARTIAL_N|REGS(CUM|
|000047e0| 2c 20 4d 4f 44 45 2c 20 | 54 59 50 45 2c 20 4e 41 |, MODE, |TYPE, NA|
|000047f0| 4d 45 44 29 20 5c 0d 28 | 28 54 41 52 47 45 54 5f |MED) \.(|(TARGET_|
|00004800| 52 45 47 50 41 52 4d 20 | 26 26 20 28 43 55 4d 29 |REGPARM |&& (CUM)|
|00004810| 20 3c 20 38 09 09 09 09 | 09 5c 0d 20 20 26 26 20 | < 8....|.\. && |
|00004820| 38 20 3c 20 28 28 43 55 | 4d 29 20 2b 20 28 28 4d |8 < ((CU|M) + ((M|
|00004830| 4f 44 45 29 20 3d 3d 20 | 42 4c 4b 6d 6f 64 65 09 |ODE) == |BLKmode.|
|00004840| 09 09 09 5c 0d 09 09 20 | 20 20 20 20 20 3f 20 69 |...\... | ? i|
|00004850| 6e 74 5f 73 69 7a 65 5f | 69 6e 5f 62 79 74 65 73 |nt_size_|in_bytes|
|00004860| 20 28 54 59 50 45 29 09 | 09 5c 0d 09 09 20 20 20 | (TYPE).|.\... |
|00004870| 20 20 20 3a 20 47 45 54 | 5f 4d 4f 44 45 5f 53 49 | : GET|_MODE_SI|
|00004880| 5a 45 20 28 4d 4f 44 45 | 29 29 29 29 20 20 09 09 |ZE (MODE|)))) ..|
|00004890| 5c 0d 20 3f 20 32 20 2d | 20 28 43 55 4d 29 20 2f |\. ? 2 -| (CUM) /|
|000048a0| 20 34 20 3a 20 30 29 0d | 0d 2f 2a 20 54 68 69 73 | 4 : 0).|./* This|
|000048b0| 20 6d 61 63 72 6f 20 67 | 65 6e 65 72 61 74 65 73 | macro g|enerates|
|000048c0| 20 74 68 65 20 61 73 73 | 65 6d 62 6c 79 20 63 6f | the ass|embly co|
|000048d0| 64 65 20 66 6f 72 20 66 | 75 6e 63 74 69 6f 6e 20 |de for f|unction |
|000048e0| 65 6e 74 72 79 2e 0d 20 | 20 20 46 49 4c 45 20 69 |entry.. | FILE i|
|000048f0| 73 20 61 20 73 74 64 69 | 6f 20 73 74 72 65 61 6d |s a stdi|o stream|
|00004900| 20 74 6f 20 6f 75 74 70 | 75 74 20 74 68 65 20 63 | to outp|ut the c|
|00004910| 6f 64 65 20 74 6f 2e 0d | 20 20 20 53 49 5a 45 20 |ode to..| SIZE |
|00004920| 69 73 20 61 6e 20 69 6e | 74 3a 20 68 6f 77 20 6d |is an in|t: how m|
|00004930| 61 6e 79 20 75 6e 69 74 | 73 20 6f 66 20 74 65 6d |any unit|s of tem|
|00004940| 70 6f 72 61 72 79 20 73 | 74 6f 72 61 67 65 20 74 |porary s|torage t|
|00004950| 6f 20 61 6c 6c 6f 63 61 | 74 65 2e 0d 20 20 20 52 |o alloca|te.. R|
|00004960| 65 66 65 72 20 74 6f 20 | 74 68 65 20 61 72 72 61 |efer to |the arra|
|00004970| 79 20 60 72 65 67 73 5f | 65 76 65 72 5f 6c 69 76 |y `regs_|ever_liv|
|00004980| 65 27 20 74 6f 20 64 65 | 74 65 72 6d 69 6e 65 20 |e' to de|termine |
|00004990| 77 68 69 63 68 20 72 65 | 67 69 73 74 65 72 73 0d |which re|gisters.|
|000049a0| 20 20 20 74 6f 20 73 61 | 76 65 3b 20 60 72 65 67 | to sa|ve; `reg|
|000049b0| 73 5f 65 76 65 72 5f 6c | 69 76 65 5b 49 5d 27 20 |s_ever_l|ive[I]' |
|000049c0| 69 73 20 6e 6f 6e 7a 65 | 72 6f 20 69 66 20 72 65 |is nonze|ro if re|
|000049d0| 67 69 73 74 65 72 20 6e | 75 6d 62 65 72 20 49 0d |gister n|umber I.|
|000049e0| 20 20 20 69 73 20 65 76 | 65 72 20 75 73 65 64 20 | is ev|er used |
|000049f0| 69 6e 20 74 68 65 20 66 | 75 6e 63 74 69 6f 6e 2e |in the f|unction.|
|00004a00| 20 20 54 68 69 73 20 6d | 61 63 72 6f 20 69 73 20 | This m|acro is |
|00004a10| 72 65 73 70 6f 6e 73 69 | 62 6c 65 20 66 6f 72 0d |responsi|ble for.|
|00004a20| 20 20 20 6b 6e 6f 77 69 | 6e 67 20 77 68 69 63 68 | knowi|ng which|
|00004a30| 20 72 65 67 69 73 74 65 | 72 73 20 73 68 6f 75 6c | registe|rs shoul|
|00004a40| 64 20 6e 6f 74 20 62 65 | 20 73 61 76 65 64 20 65 |d not be| saved e|
|00004a50| 76 65 6e 20 69 66 20 75 | 73 65 64 2e 20 20 2a 2f |ven if u|sed. */|
|00004a60| 0d 0d 23 64 65 66 69 6e | 65 20 46 55 4e 43 54 49 |..#defin|e FUNCTI|
|00004a70| 4f 4e 5f 50 52 4f 4c 4f | 47 55 45 28 46 49 4c 45 |ON_PROLO|GUE(FILE|
|00004a80| 2c 20 53 49 5a 45 29 20 | 20 20 20 20 5c 0d 20 20 |, SIZE) | \. |
|00004a90| 66 75 6e 63 74 69 6f 6e | 5f 70 72 6f 6c 6f 67 75 |function|_prologu|
|00004aa0| 65 20 28 46 49 4c 45 2c | 20 53 49 5a 45 29 0d 0d |e (FILE,| SIZE)..|
|00004ab0| 2f 2a 20 4f 75 74 70 75 | 74 20 61 73 73 65 6d 62 |/* Outpu|t assemb|
|00004ac0| 6c 65 72 20 63 6f 64 65 | 20 74 6f 20 46 49 4c 45 |ler code| to FILE|
|00004ad0| 20 74 6f 20 69 6e 63 72 | 65 6d 65 6e 74 20 70 72 | to incr|ement pr|
|00004ae0| 6f 66 69 6c 65 72 20 6c | 61 62 65 6c 20 23 20 4c |ofiler l|abel # L|
|00004af0| 41 42 45 4c 4e 4f 0d 20 | 20 20 66 6f 72 20 70 72 |ABELNO. | for pr|
|00004b00| 6f 66 69 6c 69 6e 67 20 | 61 20 66 75 6e 63 74 69 |ofiling |a functi|
|00004b10| 6f 6e 20 65 6e 74 72 79 | 2e 20 20 2a 2f 0d 0d 23 |on entry|. */..#|
|00004b20| 64 65 66 69 6e 65 20 46 | 55 4e 43 54 49 4f 4e 5f |define F|UNCTION_|
|00004b30| 50 52 4f 46 49 4c 45 52 | 28 46 49 4c 45 2c 20 4c |PROFILER|(FILE, L|
|00004b40| 41 42 45 4c 4e 4f 29 20 | 20 5c 0d 20 20 20 66 70 |ABELNO) | \. fp|
|00004b50| 72 69 6e 74 66 20 28 46 | 49 4c 45 2c 20 22 5c 74 |rintf (F|ILE, "\t|
|00004b60| 6d 6f 76 6c 20 24 25 73 | 50 25 64 2c 25 25 65 64 |movl $%s|P%d,%%ed|
|00004b70| 78 5c 6e 5c 74 63 61 6c | 6c 20 5f 6d 63 6f 75 6e |x\n\tcal|l _mcoun|
|00004b80| 74 5c 6e 22 2c 20 4c 50 | 52 45 46 49 58 2c 20 28 |t\n", LP|REFIX, (|
|00004b90| 4c 41 42 45 4c 4e 4f 29 | 29 3b 0d 0d 2f 2a 20 45 |LABELNO)|);../* E|
|00004ba0| 58 49 54 5f 49 47 4e 4f | 52 45 5f 53 54 41 43 4b |XIT_IGNO|RE_STACK|
|00004bb0| 20 73 68 6f 75 6c 64 20 | 62 65 20 6e 6f 6e 7a 65 | should |be nonze|
|00004bc0| 72 6f 20 69 66 2c 20 77 | 68 65 6e 20 72 65 74 75 |ro if, w|hen retu|
|00004bd0| 72 6e 69 6e 67 20 66 72 | 6f 6d 20 61 20 66 75 6e |rning fr|om a fun|
|00004be0| 63 74 69 6f 6e 2c 0d 20 | 20 20 74 68 65 20 73 74 |ction,. | the st|
|00004bf0| 61 63 6b 20 70 6f 69 6e | 74 65 72 20 64 6f 65 73 |ack poin|ter does|
|00004c00| 20 6e 6f 74 20 6d 61 74 | 74 65 72 2e 20 20 54 68 | not mat|ter. Th|
|00004c10| 65 20 76 61 6c 75 65 20 | 69 73 20 74 65 73 74 65 |e value |is teste|
|00004c20| 64 20 6f 6e 6c 79 20 69 | 6e 0d 20 20 20 66 75 6e |d only i|n. fun|
|00004c30| 63 74 69 6f 6e 73 20 74 | 68 61 74 20 68 61 76 65 |ctions t|hat have|
|00004c40| 20 66 72 61 6d 65 20 70 | 6f 69 6e 74 65 72 73 2e | frame p|ointers.|
|00004c50| 0d 20 20 20 4e 6f 20 64 | 65 66 69 6e 69 74 69 6f |. No d|efinitio|
|00004c60| 6e 20 69 73 20 65 71 75 | 69 76 61 6c 65 6e 74 20 |n is equ|ivalent |
|00004c70| 74 6f 20 61 6c 77 61 79 | 73 20 7a 65 72 6f 2e 20 |to alway|s zero. |
|00004c80| 20 2a 2f 0d 2f 2a 20 4e | 6f 74 65 20 6f 6e 20 74 | */./* N|ote on t|
|00004c90| 68 65 20 33 38 36 20 69 | 74 20 6d 69 67 68 74 20 |he 386 i|t might |
|00004ca0| 62 65 20 6d 6f 72 65 20 | 65 66 66 69 63 69 65 6e |be more |efficien|
|00004cb0| 74 20 6e 6f 74 20 74 6f | 20 64 65 66 69 6e 65 20 |t not to| define |
|00004cc0| 74 68 69 73 20 73 69 6e | 63 65 20 0d 20 20 20 77 |this sin|ce . w|
|00004cd0| 65 20 68 61 76 65 20 74 | 6f 20 72 65 73 74 6f 72 |e have t|o restor|
|00004ce0| 65 20 69 74 20 6f 75 72 | 73 65 6c 76 65 73 20 66 |e it our|selves f|
|00004cf0| 72 6f 6d 20 74 68 65 20 | 66 72 61 6d 65 20 70 6f |rom the |frame po|
|00004d00| 69 6e 74 65 72 2c 20 69 | 6e 20 6f 72 64 65 72 20 |inter, i|n order |
|00004d10| 74 6f 0d 20 20 20 75 73 | 65 20 70 6f 70 20 2a 2f |to. us|e pop */|
|00004d20| 0d 0d 23 64 65 66 69 6e | 65 20 45 58 49 54 5f 49 |..#defin|e EXIT_I|
|00004d30| 47 4e 4f 52 45 5f 53 54 | 41 43 4b 20 31 0d 0d 2f |GNORE_ST|ACK 1../|
|00004d40| 2a 20 54 68 69 73 20 6d | 61 63 72 6f 20 67 65 6e |* This m|acro gen|
|00004d50| 65 72 61 74 65 73 20 74 | 68 65 20 61 73 73 65 6d |erates t|he assem|
|00004d60| 62 6c 79 20 63 6f 64 65 | 20 66 6f 72 20 66 75 6e |bly code| for fun|
|00004d70| 63 74 69 6f 6e 20 65 78 | 69 74 2c 0d 20 20 20 6f |ction ex|it,. o|
|00004d80| 6e 20 6d 61 63 68 69 6e | 65 73 20 74 68 61 74 20 |n machin|es that |
|00004d90| 6e 65 65 64 20 69 74 2e | 20 20 49 66 20 46 55 4e |need it.| If FUN|
|00004da0| 43 54 49 4f 4e 5f 45 50 | 49 4c 4f 47 55 45 20 69 |CTION_EP|ILOGUE i|
|00004db0| 73 20 6e 6f 74 20 64 65 | 66 69 6e 65 64 0d 20 20 |s not de|fined. |
|00004dc0| 20 74 68 65 6e 20 69 6e | 64 69 76 69 64 75 61 6c | then in|dividual|
|00004dd0| 20 72 65 74 75 72 6e 20 | 69 6e 73 74 72 75 63 74 | return |instruct|
|00004de0| 69 6f 6e 73 20 61 72 65 | 20 67 65 6e 65 72 61 74 |ions are| generat|
|00004df0| 65 64 20 66 6f 72 20 65 | 61 63 68 0d 20 20 20 72 |ed for e|ach. r|
|00004e00| 65 74 75 72 6e 20 73 74 | 61 74 65 6d 65 6e 74 2e |eturn st|atement.|
|00004e10| 20 20 41 72 67 73 20 61 | 72 65 20 73 61 6d 65 20 | Args a|re same |
|00004e20| 61 73 20 66 6f 72 20 46 | 55 4e 43 54 49 4f 4e 5f |as for F|UNCTION_|
|00004e30| 50 52 4f 4c 4f 47 55 45 | 2e 0d 0d 20 20 20 54 68 |PROLOGUE|... Th|
|00004e40| 65 20 66 75 6e 63 74 69 | 6f 6e 20 65 70 69 6c 6f |e functi|on epilo|
|00004e50| 67 75 65 20 73 68 6f 75 | 6c 64 20 6e 6f 74 20 64 |gue shou|ld not d|
|00004e60| 65 70 65 6e 64 20 6f 6e | 20 74 68 65 20 63 75 72 |epend on| the cur|
|00004e70| 72 65 6e 74 20 73 74 61 | 63 6b 20 70 6f 69 6e 74 |rent sta|ck point|
|00004e80| 65 72 21 0d 20 20 20 49 | 74 20 73 68 6f 75 6c 64 |er!. I|t should|
|00004e90| 20 75 73 65 20 74 68 65 | 20 66 72 61 6d 65 20 70 | use the| frame p|
|00004ea0| 6f 69 6e 74 65 72 20 6f | 6e 6c 79 2e 20 20 54 68 |ointer o|nly. Th|
|00004eb0| 69 73 20 69 73 20 6d 61 | 6e 64 61 74 6f 72 79 20 |is is ma|ndatory |
|00004ec0| 62 65 63 61 75 73 65 0d | 20 20 20 6f 66 20 61 6c |because.| of al|
|00004ed0| 6c 6f 63 61 3b 20 77 65 | 20 61 6c 73 6f 20 74 61 |loca; we| also ta|
|00004ee0| 6b 65 20 61 64 76 61 6e | 74 61 67 65 20 6f 66 20 |ke advan|tage of |
|00004ef0| 69 74 20 74 6f 20 6f 6d | 69 74 20 73 74 61 63 6b |it to om|it stack|
|00004f00| 20 61 64 6a 75 73 74 6d | 65 6e 74 73 0d 20 20 20 | adjustm|ents. |
|00004f10| 62 65 66 6f 72 65 20 72 | 65 74 75 72 6e 69 6e 67 |before r|eturning|
|00004f20| 2e 20 20 2a 2f 0d 0d 23 | 64 65 66 69 6e 65 20 46 |. */..#|define F|
|00004f30| 55 4e 43 54 49 4f 4e 5f | 45 50 49 4c 4f 47 55 45 |UNCTION_|EPILOGUE|
|00004f40| 28 46 49 4c 45 2c 20 53 | 49 5a 45 29 20 5c 0d 20 |(FILE, S|IZE) \. |
|00004f50| 20 66 75 6e 63 74 69 6f | 6e 5f 65 70 69 6c 6f 67 | functio|n_epilog|
|00004f60| 75 65 20 28 46 49 4c 45 | 2c 20 53 49 5a 45 29 0d |ue (FILE|, SIZE).|
|00004f70| 0d 2f 2a 20 49 66 20 74 | 68 65 20 6d 65 6d 6f 72 |./* If t|he memor|
|00004f80| 79 20 61 64 64 72 65 73 | 73 20 41 44 44 52 20 69 |y addres|s ADDR i|
|00004f90| 73 20 72 65 6c 61 74 69 | 76 65 20 74 6f 20 74 68 |s relati|ve to th|
|00004fa0| 65 20 66 72 61 6d 65 20 | 70 6f 69 6e 74 65 72 2c |e frame |pointer,|
|00004fb0| 0d 20 20 20 63 6f 72 72 | 65 63 74 20 69 74 20 74 |. corr|ect it t|
|00004fc0| 6f 20 62 65 20 72 65 6c | 61 74 69 76 65 20 74 6f |o be rel|ative to|
|00004fd0| 20 74 68 65 20 73 74 61 | 63 6b 20 70 6f 69 6e 74 | the sta|ck point|
|00004fe0| 65 72 20 69 6e 73 74 65 | 61 64 2e 0d 20 20 20 54 |er inste|ad.. T|
|00004ff0| 68 69 73 20 69 73 20 66 | 6f 72 20 77 68 65 6e 20 |his is f|or when |
|00005000| 77 65 20 64 6f 6e 27 74 | 20 75 73 65 20 61 20 66 |we don't| use a f|
|00005010| 72 61 6d 65 20 70 6f 69 | 6e 74 65 72 2e 0d 20 20 |rame poi|nter.. |
|00005020| 20 41 44 44 52 20 73 68 | 6f 75 6c 64 20 62 65 20 | ADDR sh|ould be |
|00005030| 61 20 76 61 72 69 61 62 | 6c 65 20 6e 61 6d 65 2e |a variab|le name.|
|00005040| 20 20 2a 2f 0d 0d 0d 23 | 64 65 66 69 6e 65 20 46 | */...#|define F|
|00005050| 49 58 5f 46 52 41 4d 45 | 5f 50 4f 49 4e 54 45 52 |IX_FRAME|_POINTER|
|00005060| 5f 41 44 44 52 45 53 53 | 28 41 44 44 52 2c 44 45 |_ADDRESS|(ADDR,DE|
|00005070| 50 54 48 29 20 20 5c 0d | 7b 20 69 6e 74 20 6f 66 |PTH) \.|{ int of|
|00005080| 66 73 65 74 20 3d 20 2d | 31 3b 09 09 09 09 09 09 |fset = -|1;......|
|00005090| 09 5c 0d 20 20 72 74 78 | 20 72 65 67 73 20 3d 20 |.\. rtx| regs = |
|000050a0| 73 74 61 63 6b 5f 70 6f | 69 6e 74 65 72 5f 72 74 |stack_po|inter_rt|
|000050b0| 78 3b 09 09 09 09 09 09 | 5c 0d 20 20 69 66 20 28 |x;......|\. if (|
|000050c0| 41 44 44 52 20 3d 3d 20 | 66 72 61 6d 65 5f 70 6f |ADDR == |frame_po|
|000050d0| 69 6e 74 65 72 5f 72 74 | 78 29 09 09 09 09 09 5c |inter_rt|x).....\|
|000050e0| 0d 20 20 20 20 6f 66 66 | 73 65 74 20 3d 20 30 3b |. off|set = 0;|
|000050f0| 09 09 09 09 09 09 09 09 | 5c 0d 20 20 65 6c 73 65 |........|\. else|
|00005100| 20 69 66 20 28 47 45 54 | 5f 43 4f 44 45 20 28 41 | if (GET|_CODE (A|
|00005110| 44 44 52 29 20 3d 3d 20 | 50 4c 55 53 20 26 26 20 |DDR) == |PLUS && |
|00005120| 58 45 58 50 20 28 41 44 | 44 52 2c 20 30 29 20 3d |XEXP (AD|DR, 0) =|
|00005130| 3d 20 66 72 61 6d 65 5f | 70 6f 69 6e 74 65 72 5f |= frame_|pointer_|
|00005140| 72 74 78 20 5c 0d 09 20 | 20 20 26 26 20 47 45 54 |rtx \.. | && GET|
|00005150| 5f 43 4f 44 45 20 28 58 | 45 58 50 20 28 41 44 44 |_CODE (X|EXP (ADD|
|00005160| 52 2c 20 31 29 29 20 3d | 3d 20 43 4f 4e 53 54 5f |R, 1)) =|= CONST_|
|00005170| 49 4e 54 29 09 09 09 5c | 0d 20 20 20 20 6f 66 66 |INT)...\|. off|
|00005180| 73 65 74 20 3d 20 49 4e | 54 56 41 4c 20 28 58 45 |set = IN|TVAL (XE|
|00005190| 58 50 20 28 41 44 44 52 | 2c 20 31 29 29 3b 09 09 |XP (ADDR|, 1));..|
|000051a0| 09 09 09 5c 0d 20 20 65 | 6c 73 65 20 69 66 20 28 |...\. e|lse if (|
|000051b0| 47 45 54 5f 43 4f 44 45 | 20 28 41 44 44 52 29 20 |GET_CODE| (ADDR) |
|000051c0| 3d 3d 20 50 4c 55 53 20 | 26 26 20 58 45 58 50 20 |== PLUS |&& XEXP |
|000051d0| 28 41 44 44 52 2c 20 30 | 29 20 3d 3d 20 66 72 61 |(ADDR, 0|) == fra|
|000051e0| 6d 65 5f 70 6f 69 6e 74 | 65 72 5f 72 74 78 29 20 |me_point|er_rtx) |
|000051f0| 5c 0d 20 20 20 20 7b 20 | 72 74 78 20 6f 74 68 65 |\. { |rtx othe|
|00005200| 72 5f 72 65 67 20 3d 20 | 58 45 58 50 20 28 41 44 |r_reg = |XEXP (AD|
|00005210| 44 52 2c 20 31 29 3b 09 | 09 09 09 09 5c 0d 20 20 |DR, 1);.|....\. |
|00005220| 20 20 20 20 6f 66 66 73 | 65 74 20 3d 20 30 3b 09 | offs|et = 0;.|
|00005230| 09 09 09 09 09 09 5c 0d | 20 20 20 20 20 20 72 65 |......\.| re|
|00005240| 67 73 20 3d 20 67 65 6e | 5f 72 74 78 20 28 50 4c |gs = gen|_rtx (PL|
|00005250| 55 53 2c 20 50 6d 6f 64 | 65 2c 20 73 74 61 63 6b |US, Pmod|e, stack|
|00005260| 5f 70 6f 69 6e 74 65 72 | 5f 72 74 78 2c 20 6f 74 |_pointer|_rtx, ot|
|00005270| 68 65 72 5f 72 65 67 29 | 3b 20 7d 09 5c 0d 20 20 |her_reg)|; }.\. |
|00005280| 65 6c 73 65 20 69 66 20 | 28 47 45 54 5f 43 4f 44 |else if |(GET_COD|
|00005290| 45 20 28 41 44 44 52 29 | 20 3d 3d 20 50 4c 55 53 |E (ADDR)| == PLUS|
|000052a0| 20 26 26 20 58 45 58 50 | 20 28 41 44 44 52 2c 20 | && XEXP| (ADDR, |
|000052b0| 31 29 20 3d 3d 20 66 72 | 61 6d 65 5f 70 6f 69 6e |1) == fr|ame_poin|
|000052c0| 74 65 72 5f 72 74 78 29 | 20 5c 0d 20 20 20 20 7b |ter_rtx)| \. {|
|000052d0| 20 72 74 78 20 6f 74 68 | 65 72 5f 72 65 67 20 3d | rtx oth|er_reg =|
|000052e0| 20 58 45 58 50 20 28 41 | 44 44 52 2c 20 30 29 3b | XEXP (A|DDR, 0);|
|000052f0| 09 09 09 09 09 5c 0d 20 | 20 20 20 20 20 6f 66 66 |.....\. | off|
|00005300| 73 65 74 20 3d 20 30 3b | 09 09 09 09 09 09 09 5c |set = 0;|.......\|
|00005310| 0d 20 20 20 20 20 20 72 | 65 67 73 20 3d 20 67 65 |. r|egs = ge|
|00005320| 6e 5f 72 74 78 20 28 50 | 4c 55 53 2c 20 50 6d 6f |n_rtx (P|LUS, Pmo|
|00005330| 64 65 2c 20 73 74 61 63 | 6b 5f 70 6f 69 6e 74 65 |de, stac|k_pointe|
|00005340| 72 5f 72 74 78 2c 20 6f | 74 68 65 72 5f 72 65 67 |r_rtx, o|ther_reg|
|00005350| 29 3b 20 7d 09 5c 0d 20 | 20 65 6c 73 65 20 69 66 |); }.\. | else if|
|00005360| 20 28 47 45 54 5f 43 4f | 44 45 20 28 41 44 44 52 | (GET_CO|DE (ADDR|
|00005370| 29 20 3d 3d 20 50 4c 55 | 53 09 09 09 09 09 5c 0d |) == PLU|S.....\.|
|00005380| 09 20 20 20 26 26 20 47 | 45 54 5f 43 4f 44 45 20 |. && G|ET_CODE |
|00005390| 28 58 45 58 50 20 28 41 | 44 44 52 2c 20 30 29 29 |(XEXP (A|DDR, 0))|
|000053a0| 20 3d 3d 20 50 4c 55 53 | 09 09 09 09 5c 0d 09 20 | == PLUS|....\.. |
|000053b0| 20 20 26 26 20 58 45 58 | 50 20 28 58 45 58 50 20 | && XEX|P (XEXP |
|000053c0| 28 41 44 44 52 2c 20 30 | 29 2c 20 30 29 20 3d 3d |(ADDR, 0|), 0) ==|
|000053d0| 20 66 72 61 6d 65 5f 70 | 6f 69 6e 74 65 72 5f 72 | frame_p|ointer_r|
|000053e0| 74 78 09 09 5c 0d 09 20 | 20 20 26 26 20 47 45 54 |tx..\.. | && GET|
|000053f0| 5f 43 4f 44 45 20 28 58 | 45 58 50 20 28 41 44 44 |_CODE (X|EXP (ADD|
|00005400| 52 2c 20 31 29 29 20 3d | 3d 20 43 4f 4e 53 54 5f |R, 1)) =|= CONST_|
|00005410| 49 4e 54 29 09 09 09 5c | 0d 20 20 20 20 7b 20 72 |INT)...\|. { r|
|00005420| 74 78 20 6f 74 68 65 72 | 5f 72 65 67 20 3d 20 58 |tx other|_reg = X|
|00005430| 45 58 50 20 28 58 45 58 | 50 20 28 41 44 44 52 2c |EXP (XEX|P (ADDR,|
|00005440| 20 30 29 2c 20 31 29 3b | 09 09 09 09 5c 0d 20 20 | 0), 1);|....\. |
|00005450| 20 20 20 20 6f 66 66 73 | 65 74 20 3d 20 49 4e 54 | offs|et = INT|
|00005460| 56 41 4c 20 28 58 45 58 | 50 20 28 41 44 44 52 2c |VAL (XEX|P (ADDR,|
|00005470| 20 31 29 29 3b 09 09 09 | 09 09 5c 0d 20 20 20 20 | 1));...|..\. |
|00005480| 20 20 72 65 67 73 20 3d | 20 67 65 6e 5f 72 74 78 | regs =| gen_rtx|
|00005490| 20 28 50 4c 55 53 2c 20 | 50 6d 6f 64 65 2c 20 73 | (PLUS, |Pmode, s|
|000054a0| 74 61 63 6b 5f 70 6f 69 | 6e 74 65 72 5f 72 74 78 |tack_poi|nter_rtx|
|000054b0| 2c 20 6f 74 68 65 72 5f | 72 65 67 29 3b 20 7d 09 |, other_|reg); }.|
|000054c0| 5c 0d 20 20 65 6c 73 65 | 20 69 66 20 28 47 45 54 |\. else| if (GET|
|000054d0| 5f 43 4f 44 45 20 28 41 | 44 44 52 29 20 3d 3d 20 |_CODE (A|DDR) == |
|000054e0| 50 4c 55 53 09 09 09 09 | 09 5c 0d 09 20 20 20 26 |PLUS....|.\.. &|
|000054f0| 26 20 47 45 54 5f 43 4f | 44 45 20 28 58 45 58 50 |& GET_CO|DE (XEXP|
|00005500| 20 28 41 44 44 52 2c 20 | 30 29 29 20 3d 3d 20 50 | (ADDR, |0)) == P|
|00005510| 4c 55 53 09 09 09 09 5c | 0d 09 20 20 20 26 26 20 |LUS....\|.. && |
|00005520| 58 45 58 50 20 28 58 45 | 58 50 20 28 41 44 44 52 |XEXP (XE|XP (ADDR|
|00005530| 2c 20 30 29 2c 20 31 29 | 20 3d 3d 20 66 72 61 6d |, 0), 1)| == fram|
|00005540| 65 5f 70 6f 69 6e 74 65 | 72 5f 72 74 78 09 09 5c |e_pointe|r_rtx..\|
|00005550| 0d 09 20 20 20 26 26 20 | 47 45 54 5f 43 4f 44 45 |.. && |GET_CODE|
|00005560| 20 28 58 45 58 50 20 28 | 41 44 44 52 2c 20 31 29 | (XEXP (|ADDR, 1)|
|00005570| 29 20 3d 3d 20 43 4f 4e | 53 54 5f 49 4e 54 29 09 |) == CON|ST_INT).|
|00005580| 09 09 5c 0d 20 20 20 20 | 7b 20 72 74 78 20 6f 74 |..\. |{ rtx ot|
|00005590| 68 65 72 5f 72 65 67 20 | 3d 20 58 45 58 50 20 28 |her_reg |= XEXP (|
|000055a0| 58 45 58 50 20 28 41 44 | 44 52 2c 20 30 29 2c 20 |XEXP (AD|DR, 0), |
|000055b0| 30 29 3b 09 09 09 09 5c | 0d 20 20 20 20 20 20 6f |0);....\|. o|
|000055c0| 66 66 73 65 74 20 3d 20 | 49 4e 54 56 41 4c 20 28 |ffset = |INTVAL (|
|000055d0| 58 45 58 50 20 28 41 44 | 44 52 2c 20 31 29 29 3b |XEXP (AD|DR, 1));|
|000055e0| 09 09 09 09 09 5c 0d 20 | 20 20 20 20 20 72 65 67 |.....\. | reg|
|000055f0| 73 20 3d 20 67 65 6e 5f | 72 74 78 20 28 50 4c 55 |s = gen_|rtx (PLU|
|00005600| 53 2c 20 50 6d 6f 64 65 | 2c 20 73 74 61 63 6b 5f |S, Pmode|, stack_|
|00005610| 70 6f 69 6e 74 65 72 5f | 72 74 78 2c 20 6f 74 68 |pointer_|rtx, oth|
|00005620| 65 72 5f 72 65 67 29 3b | 20 7d 09 5c 0d 20 20 69 |er_reg);| }.\. i|
|00005630| 66 20 28 6f 66 66 73 65 | 74 20 3e 3d 20 30 29 09 |f (offse|t >= 0).|
|00005640| 09 09 09 09 09 09 5c 0d | 20 20 20 20 7b 20 69 6e |......\.| { in|
|00005650| 74 20 72 65 67 6e 6f 3b | 09 09 09 09 09 09 09 5c |t regno;|.......\|
|00005660| 0d 20 20 20 20 20 20 65 | 78 74 65 72 6e 20 63 68 |. e|xtern ch|
|00005670| 61 72 20 63 61 6c 6c 5f | 75 73 65 64 5f 72 65 67 |ar call_|used_reg|
|00005680| 73 5b 5d 3b 09 09 09 09 | 09 5c 0d 20 20 20 20 20 |s[];....|.\. |
|00005690| 20 66 6f 72 20 28 72 65 | 67 6e 6f 20 3d 20 46 49 | for (re|gno = FI|
|000056a0| 52 53 54 5f 46 4c 4f 41 | 54 5f 52 45 47 3b 20 72 |RST_FLOA|T_REG; r|
|000056b0| 65 67 6e 6f 20 3c 20 46 | 49 52 53 54 5f 50 53 45 |egno < F|IRST_PSE|
|000056c0| 55 44 4f 5f 52 45 47 49 | 53 54 45 52 3b 20 72 65 |UDO_REGI|STER; re|
|000056d0| 67 6e 6f 2b 2b 29 5c 0d | 09 69 66 20 28 72 65 67 |gno++)\.|.if (reg|
|000056e0| 73 5f 65 76 65 72 5f 6c | 69 76 65 5b 72 65 67 6e |s_ever_l|ive[regn|
|000056f0| 6f 5d 20 26 26 20 21 20 | 63 61 6c 6c 5f 75 73 65 |o] && ! |call_use|
|00005700| 64 5f 72 65 67 73 5b 72 | 65 67 6e 6f 5d 29 09 09 |d_regs[r|egno])..|
|00005710| 5c 0d 09 20 20 6f 66 66 | 73 65 74 20 2b 3d 20 38 |\.. off|set += 8|
|00005720| 3b 09 09 09 09 09 09 09 | 5c 0d 20 20 20 20 20 20 |;.......|\. |
|00005730| 66 6f 72 20 28 72 65 67 | 6e 6f 3d 30 20 3b 20 72 |for (reg|no=0 ; r|
|00005740| 65 67 6e 6f 20 3c 46 49 | 52 53 54 5f 46 4c 4f 41 |egno <FI|RST_FLOA|
|00005750| 54 5f 52 45 47 20 3b 20 | 72 65 67 6e 6f 2b 2b 29 |T_REG ; |regno++)|
|00005760| 20 20 20 09 09 5c 0d 09 | 69 66 20 28 72 65 67 73 | ..\..|if (regs|
|00005770| 5f 65 76 65 72 5f 6c 69 | 76 65 5b 72 65 67 6e 6f |_ever_li|ve[regno|
|00005780| 5d 20 26 26 20 21 20 63 | 61 6c 6c 5f 75 73 65 64 |] && ! c|all_used|
|00005790| 5f 72 65 67 73 5b 72 65 | 67 6e 6f 5d 29 09 09 5c |_regs[re|gno])..\|
|000057a0| 0d 09 20 20 6f 66 66 73 | 65 74 20 2b 3d 20 34 3b |.. offs|et += 4;|
|000057b0| 09 09 09 09 09 09 09 5c | 0d 20 20 20 20 20 20 6f |.......\|. o|
|000057c0| 66 66 73 65 74 20 2d 3d | 20 34 3b 09 09 09 09 09 |ffset -=| 4;.....|
|000057d0| 09 09 5c 0d 20 20 20 20 | 20 20 41 44 44 52 20 3d |..\. | ADDR =|
|000057e0| 20 70 6c 75 73 5f 63 6f | 6e 73 74 61 6e 74 20 28 | plus_co|nstant (|
|000057f0| 72 65 67 73 2c 20 6f 66 | 66 73 65 74 20 2b 20 28 |regs, of|fset + (|
|00005800| 44 45 50 54 48 29 29 3b | 20 7d 20 7d 09 09 5c 0d |DEPTH));| } }..\.|
|00005810| 0c 0d 2f 2a 20 41 64 64 | 72 65 73 73 69 6e 67 20 |../* Add|ressing |
|00005820| 6d 6f 64 65 73 2c 20 61 | 6e 64 20 63 6c 61 73 73 |modes, a|nd class|
|00005830| 69 66 69 63 61 74 69 6f | 6e 20 6f 66 20 72 65 67 |ificatio|n of reg|
|00005840| 69 73 74 65 72 73 20 66 | 6f 72 20 74 68 65 6d 2e |isters f|or them.|
|00005850| 20 20 2a 2f 0d 0d 2f 2a | 20 23 64 65 66 69 6e 65 | */../*| #define|
|00005860| 20 48 41 56 45 5f 50 4f | 53 54 5f 49 4e 43 52 45 | HAVE_PO|ST_INCRE|
|00005870| 4d 45 4e 54 20 2a 2f 0d | 2f 2a 20 23 64 65 66 69 |MENT */.|/* #defi|
|00005880| 6e 65 20 48 41 56 45 5f | 50 4f 53 54 5f 44 45 43 |ne HAVE_|POST_DEC|
|00005890| 52 45 4d 45 4e 54 20 2a | 2f 0d 0d 2f 2a 20 23 64 |REMENT *|/../* #d|
|000058a0| 65 66 69 6e 65 20 48 41 | 56 45 5f 50 52 45 5f 44 |efine HA|VE_PRE_D|
|000058b0| 45 43 52 45 4d 45 4e 54 | 20 2a 2f 0d 2f 2a 20 23 |ECREMENT| */./* #|
|000058c0| 64 65 66 69 6e 65 20 48 | 41 56 45 5f 50 52 45 5f |define H|AVE_PRE_|
|000058d0| 49 4e 43 52 45 4d 45 4e | 54 20 2a 2f 0d 0d 2f 2a |INCREMEN|T */../*|
|000058e0| 20 4d 61 63 72 6f 73 20 | 74 6f 20 63 68 65 63 6b | Macros |to check|
|000058f0| 20 72 65 67 69 73 74 65 | 72 20 6e 75 6d 62 65 72 | registe|r number|
|00005900| 73 20 61 67 61 69 6e 73 | 74 20 73 70 65 63 69 66 |s agains|t specif|
|00005910| 69 63 20 72 65 67 69 73 | 74 65 72 20 63 6c 61 73 |ic regis|ter clas|
|00005920| 73 65 73 2e 20 20 2a 2f | 0d 0d 2f 2a 20 54 68 65 |ses. */|../* The|
|00005930| 73 65 20 61 73 73 75 6d | 65 20 74 68 61 74 20 52 |se assum|e that R|
|00005940| 45 47 4e 4f 20 69 73 20 | 61 20 68 61 72 64 20 6f |EGNO is |a hard o|
|00005950| 72 20 70 73 65 75 64 6f | 20 72 65 67 20 6e 75 6d |r pseudo| reg num|
|00005960| 62 65 72 2e 0d 20 20 20 | 54 68 65 79 20 67 69 76 |ber.. |They giv|
|00005970| 65 20 6e 6f 6e 7a 65 72 | 6f 20 6f 6e 6c 79 20 69 |e nonzer|o only i|
|00005980| 66 20 52 45 47 4e 4f 20 | 69 73 20 61 20 68 61 72 |f REGNO |is a har|
|00005990| 64 20 72 65 67 20 6f 66 | 20 74 68 65 20 73 75 69 |d reg of| the sui|
|000059a0| 74 61 62 6c 65 20 63 6c | 61 73 73 0d 20 20 20 6f |table cl|ass. o|
|000059b0| 72 20 61 20 70 73 65 75 | 64 6f 20 72 65 67 20 63 |r a pseu|do reg c|
|000059c0| 75 72 72 65 6e 74 6c 79 | 20 61 6c 6c 6f 63 61 74 |urrently| allocat|
|000059d0| 65 64 20 74 6f 20 61 20 | 73 75 69 74 61 62 6c 65 |ed to a |suitable|
|000059e0| 20 68 61 72 64 20 72 65 | 67 2e 0d 20 20 20 53 69 | hard re|g.. Si|
|000059f0| 6e 63 65 20 74 68 65 79 | 20 75 73 65 20 72 65 67 |nce they| use reg|
|00005a00| 5f 72 65 6e 75 6d 62 65 | 72 2c 20 74 68 65 79 20 |_renumbe|r, they |
|00005a10| 61 72 65 20 73 61 66 65 | 20 6f 6e 6c 79 20 6f 6e |are safe| only on|
|00005a20| 63 65 20 72 65 67 5f 72 | 65 6e 75 6d 62 65 72 0d |ce reg_r|enumber.|
|00005a30| 20 20 20 68 61 73 20 62 | 65 65 6e 20 61 6c 6c 6f | has b|een allo|
|00005a40| 63 61 74 65 64 2c 20 77 | 68 69 63 68 20 68 61 70 |cated, w|hich hap|
|00005a50| 70 65 6e 73 20 69 6e 20 | 6c 6f 63 61 6c 2d 61 6c |pens in |local-al|
|00005a60| 6c 6f 63 2e 63 2e 20 20 | 2a 2f 0d 0d 23 64 65 66 |loc.c. |*/..#def|
|00005a70| 69 6e 65 20 52 45 47 4e | 4f 5f 4f 4b 5f 46 4f 52 |ine REGN|O_OK_FOR|
|00005a80| 5f 49 4e 44 45 58 5f 50 | 28 52 45 47 4e 4f 29 20 |_INDEX_P|(REGNO) |
|00005a90| 5c 0d 20 20 28 28 52 45 | 47 4e 4f 29 20 3c 20 53 |\. ((RE|GNO) < S|
|00005aa0| 54 41 43 4b 5f 50 4f 49 | 4e 54 45 52 5f 52 45 47 |TACK_POI|NTER_REG|
|00005ab0| 4e 55 4d 20 7c 7c 20 28 | 75 6e 73 69 67 6e 65 64 |NUM || (|unsigned|
|00005ac0| 29 20 72 65 67 5f 72 65 | 6e 75 6d 62 65 72 5b 52 |) reg_re|number[R|
|00005ad0| 45 47 4e 4f 5d 20 3c 20 | 53 54 41 43 4b 5f 50 4f |EGNO] < |STACK_PO|
|00005ae0| 49 4e 54 45 52 5f 52 45 | 47 4e 55 4d 29 0d 23 64 |INTER_RE|GNUM).#d|
|00005af0| 65 66 69 6e 65 20 52 45 | 47 4e 4f 5f 4f 4b 5f 46 |efine RE|GNO_OK_F|
|00005b00| 4f 52 5f 42 41 53 45 5f | 50 28 52 45 47 4e 4f 29 |OR_BASE_|P(REGNO)|
|00005b10| 20 5c 0d 20 20 28 28 52 | 45 47 4e 4f 29 20 3c 3d | \. ((R|EGNO) <=|
|00005b20| 20 53 54 41 43 4b 5f 50 | 4f 49 4e 54 45 52 5f 52 | STACK_P|OINTER_R|
|00005b30| 45 47 4e 55 4d 20 7c 7c | 20 28 75 6e 73 69 67 6e |EGNUM ||| (unsign|
|00005b40| 65 64 29 20 72 65 67 5f | 72 65 6e 75 6d 62 65 72 |ed) reg_|renumber|
|00005b50| 5b 52 45 47 4e 4f 5d 20 | 3c 3d 20 53 54 41 43 4b |[REGNO] |<= STACK|
|00005b60| 5f 50 4f 49 4e 54 45 52 | 5f 52 45 47 4e 55 4d 29 |_POINTER|_REGNUM)|
|00005b70| 0d 0d 23 64 65 66 69 6e | 65 20 52 45 47 4e 4f 5f |..#defin|e REGNO_|
|00005b80| 4f 4b 5f 46 4f 52 5f 53 | 49 52 45 47 5f 50 28 52 |OK_FOR_S|IREG_P(R|
|00005b90| 45 47 4e 4f 29 20 28 28 | 52 45 47 4e 4f 29 20 3d |EGNO) ((|REGNO) =|
|00005ba0| 3d 20 34 20 7c 7c 20 72 | 65 67 5f 72 65 6e 75 6d |= 4 || r|eg_renum|
|00005bb0| 62 65 72 5b 52 45 47 4e | 4f 5d 20 3d 3d 20 34 29 |ber[REGN|O] == 4)|
|00005bc0| 0d 23 64 65 66 69 6e 65 | 20 52 45 47 4e 4f 5f 4f |.#define| REGNO_O|
|00005bd0| 4b 5f 46 4f 52 5f 44 49 | 52 45 47 5f 50 28 52 45 |K_FOR_DI|REG_P(RE|
|00005be0| 47 4e 4f 29 20 28 28 52 | 45 47 4e 4f 29 20 3d 3d |GNO) ((R|EGNO) ==|
|00005bf0| 20 35 20 7c 7c 20 72 65 | 67 5f 72 65 6e 75 6d 62 | 5 || re|g_renumb|
|00005c00| 65 72 5b 52 45 47 4e 4f | 5d 20 3d 3d 20 35 29 0d |er[REGNO|] == 5).|
|00005c10| 0d 2f 2a 20 54 68 65 20 | 6d 61 63 72 6f 73 20 52 |./* The |macros R|
|00005c20| 45 47 5f 4f 4b 5f 46 4f | 52 2e 2e 2e 5f 50 20 61 |EG_OK_FO|R..._P a|
|00005c30| 73 73 75 6d 65 20 74 68 | 61 74 20 74 68 65 20 61 |ssume th|at the a|
|00005c40| 72 67 20 69 73 20 61 20 | 52 45 47 20 72 74 78 0d |rg is a |REG rtx.|
|00005c50| 20 20 20 61 6e 64 20 63 | 68 65 63 6b 20 69 74 73 | and c|heck its|
|00005c60| 20 76 61 6c 69 64 69 74 | 79 20 66 6f 72 20 61 20 | validit|y for a |
|00005c70| 63 65 72 74 61 69 6e 20 | 63 6c 61 73 73 2e 0d 20 |certain |class.. |
|00005c80| 20 20 57 65 20 68 61 76 | 65 20 74 77 6f 20 61 6c | We hav|e two al|
|00005c90| 74 65 72 6e 61 74 65 20 | 64 65 66 69 6e 69 74 69 |ternate |definiti|
|00005ca0| 6f 6e 73 20 66 6f 72 20 | 65 61 63 68 20 6f 66 20 |ons for |each of |
|00005cb0| 74 68 65 6d 2e 0d 20 20 | 20 54 68 65 20 75 73 75 |them.. | The usu|
|00005cc0| 61 6c 20 64 65 66 69 6e | 69 74 69 6f 6e 20 61 63 |al defin|ition ac|
|00005cd0| 63 65 70 74 73 20 61 6c | 6c 20 70 73 65 75 64 6f |cepts al|l pseudo|
|00005ce0| 20 72 65 67 73 3b 20 74 | 68 65 20 6f 74 68 65 72 | regs; t|he other|
|00005cf0| 20 72 65 6a 65 63 74 73 | 0d 20 20 20 74 68 65 6d | rejects|. them|
|00005d00| 20 75 6e 6c 65 73 73 20 | 74 68 65 79 20 68 61 76 | unless |they hav|
|00005d10| 65 20 62 65 65 6e 20 61 | 6c 6c 6f 63 61 74 65 64 |e been a|llocated|
|00005d20| 20 73 75 69 74 61 62 6c | 65 20 68 61 72 64 20 72 | suitabl|e hard r|
|00005d30| 65 67 73 2e 0d 20 20 20 | 54 68 65 20 73 79 6d 62 |egs.. |The symb|
|00005d40| 6f 6c 20 52 45 47 5f 4f | 4b 5f 53 54 52 49 43 54 |ol REG_O|K_STRICT|
|00005d50| 20 63 61 75 73 65 73 20 | 74 68 65 20 6c 61 74 74 | causes |the latt|
|00005d60| 65 72 20 64 65 66 69 6e | 69 74 69 6f 6e 20 74 6f |er defin|ition to|
|00005d70| 20 62 65 20 75 73 65 64 | 2e 0d 0d 20 20 20 4d 6f | be used|... Mo|
|00005d80| 73 74 20 73 6f 75 72 63 | 65 20 66 69 6c 65 73 20 |st sourc|e files |
|00005d90| 77 61 6e 74 20 74 6f 20 | 61 63 63 65 70 74 20 70 |want to |accept p|
|00005da0| 73 65 75 64 6f 20 72 65 | 67 73 20 69 6e 20 74 68 |seudo re|gs in th|
|00005db0| 65 20 68 6f 70 65 20 74 | 68 61 74 0d 20 20 20 74 |e hope t|hat. t|
|00005dc0| 68 65 79 20 77 69 6c 6c | 20 67 65 74 20 61 6c 6c |hey will| get all|
|00005dd0| 6f 63 61 74 65 64 20 74 | 6f 20 74 68 65 20 63 6c |ocated t|o the cl|
|00005de0| 61 73 73 20 74 68 61 74 | 20 74 68 65 20 69 6e 73 |ass that| the ins|
|00005df0| 6e 20 77 61 6e 74 73 20 | 74 68 65 6d 20 74 6f 20 |n wants |them to |
|00005e00| 62 65 20 69 6e 2e 0d 20 | 20 20 53 6f 75 72 63 65 |be in.. | Source|
|00005e10| 20 66 69 6c 65 73 20 66 | 6f 72 20 72 65 6c 6f 61 | files f|or reloa|
|00005e20| 64 20 70 61 73 73 20 6e | 65 65 64 20 74 6f 20 62 |d pass n|eed to b|
|00005e30| 65 20 73 74 72 69 63 74 | 2e 0d 20 20 20 41 66 74 |e strict|.. Aft|
|00005e40| 65 72 20 72 65 6c 6f 61 | 64 2c 20 69 74 20 6d 61 |er reloa|d, it ma|
|00005e50| 6b 65 73 20 6e 6f 20 64 | 69 66 66 65 72 65 6e 63 |kes no d|ifferenc|
|00005e60| 65 2c 20 73 69 6e 63 65 | 20 70 73 65 75 64 6f 20 |e, since| pseudo |
|00005e70| 72 65 67 73 20 68 61 76 | 65 0d 20 20 20 62 65 65 |regs hav|e. bee|
|00005e80| 6e 20 65 6c 69 6d 69 6e | 61 74 65 64 20 62 79 20 |n elimin|ated by |
|00005e90| 74 68 65 6e 2e 20 20 2a | 2f 0d 0d 23 69 66 6e 64 |then. *|/..#ifnd|
|00005ea0| 65 66 20 52 45 47 5f 4f | 4b 5f 53 54 52 49 43 54 |ef REG_O|K_STRICT|
|00005eb0| 0d 0d 2f 2a 20 4e 6f 6e | 7a 65 72 6f 20 69 66 20 |../* Non|zero if |
|00005ec0| 58 20 69 73 20 61 20 68 | 61 72 64 20 72 65 67 20 |X is a h|ard reg |
|00005ed0| 74 68 61 74 20 63 61 6e | 20 62 65 20 75 73 65 64 |that can| be used|
|00005ee0| 20 61 73 20 61 6e 20 69 | 6e 64 65 78 20 6f 72 20 | as an i|ndex or |
|00005ef0| 69 66 0d 20 20 20 69 74 | 20 69 73 20 61 20 70 73 |if. it| is a ps|
|00005f00| 65 75 64 6f 20 72 65 67 | 2e 20 20 2a 2f 0d 23 64 |eudo reg|. */.#d|
|00005f10| 65 66 69 6e 65 20 52 45 | 47 5f 4f 4b 5f 46 4f 52 |efine RE|G_OK_FOR|
|00005f20| 5f 49 4e 44 45 58 5f 50 | 28 58 29 20 28 52 45 47 |_INDEX_P|(X) (REG|
|00005f30| 4e 4f 20 28 58 29 20 3c | 20 53 54 41 43 4b 5f 50 |NO (X) <| STACK_P|
|00005f40| 4f 49 4e 54 45 52 5f 52 | 45 47 4e 55 4d 20 7c 7c |OINTER_R|EGNUM |||
|00005f50| 20 52 45 47 4e 4f 20 28 | 58 29 20 3e 3d 20 46 49 | REGNO (|X) >= FI|
|00005f60| 52 53 54 5f 50 53 45 55 | 44 4f 5f 52 45 47 49 53 |RST_PSEU|DO_REGIS|
|00005f70| 54 45 52 29 0d 2f 2a 20 | 4e 6f 6e 7a 65 72 6f 20 |TER)./* |Nonzero |
|00005f80| 69 66 20 58 20 69 73 20 | 61 20 68 61 72 64 20 72 |if X is |a hard r|
|00005f90| 65 67 20 74 68 61 74 20 | 63 61 6e 20 62 65 20 75 |eg that |can be u|
|00005fa0| 73 65 64 20 61 73 20 61 | 20 62 61 73 65 20 72 65 |sed as a| base re|
|00005fb0| 67 0d 20 20 20 6f 66 20 | 69 66 20 69 74 20 69 73 |g. of |if it is|
|00005fc0| 20 61 20 70 73 65 75 64 | 6f 20 72 65 67 2e 20 20 | a pseud|o reg. |
|00005fd0| 2a 2f 0d 20 20 2f 2a 20 | 3f 77 66 73 20 2a 2f 0d |*/. /* |?wfs */.|
|00005fe0| 23 64 65 66 69 6e 65 20 | 52 45 47 5f 4f 4b 5f 46 |#define |REG_OK_F|
|00005ff0| 4f 52 5f 42 41 53 45 5f | 50 28 58 29 20 28 52 45 |OR_BASE_|P(X) (RE|
|00006000| 47 4e 4f 20 28 58 29 20 | 3c 3d 20 53 54 41 43 4b |GNO (X) |<= STACK|
|00006010| 5f 50 4f 49 4e 54 45 52 | 5f 52 45 47 4e 55 4d 20 |_POINTER|_REGNUM |
|00006020| 7c 7c 20 52 45 47 4e 4f | 28 58 29 20 3e 3d 20 46 ||| REGNO|(X) >= F|
|00006030| 49 52 53 54 5f 50 53 45 | 55 44 4f 5f 52 45 47 49 |IRST_PSE|UDO_REGI|
|00006040| 53 54 45 52 29 0d 23 64 | 65 66 69 6e 65 20 52 45 |STER).#d|efine RE|
|00006050| 47 5f 4f 4b 5f 46 4f 52 | 5f 53 54 52 52 45 47 5f |G_OK_FOR|_STRREG_|
|00006060| 50 28 58 29 20 5c 0d 20 | 20 28 52 45 47 4e 4f 20 |P(X) \. | (REGNO |
|00006070| 28 58 29 20 3d 3d 20 34 | 20 7c 7c 20 52 45 47 4e |(X) == 4| || REGN|
|00006080| 4f 20 28 58 29 20 3d 3d | 20 35 20 7c 7c 20 52 45 |O (X) ==| 5 || RE|
|00006090| 47 4e 4f 20 28 58 29 20 | 3e 3d 20 46 49 52 53 54 |GNO (X) |>= FIRST|
|000060a0| 5f 50 53 45 55 44 4f 5f | 52 45 47 49 53 54 45 52 |_PSEUDO_|REGISTER|
|000060b0| 29 0d 0d 23 65 6c 73 65 | 0d 0d 2f 2a 20 4e 6f 6e |)..#else|../* Non|
|000060c0| 7a 65 72 6f 20 69 66 20 | 58 20 69 73 20 61 20 68 |zero if |X is a h|
|000060d0| 61 72 64 20 72 65 67 20 | 74 68 61 74 20 63 61 6e |ard reg |that can|
|000060e0| 20 62 65 20 75 73 65 64 | 20 61 73 20 61 6e 20 69 | be used| as an i|
|000060f0| 6e 64 65 78 2e 20 20 2a | 2f 0d 23 64 65 66 69 6e |ndex. *|/.#defin|
|00006100| 65 20 52 45 47 5f 4f 4b | 5f 46 4f 52 5f 49 4e 44 |e REG_OK|_FOR_IND|
|00006110| 45 58 5f 50 28 58 29 20 | 52 45 47 4e 4f 5f 4f 4b |EX_P(X) |REGNO_OK|
|00006120| 5f 46 4f 52 5f 49 4e 44 | 45 58 5f 50 20 28 52 45 |_FOR_IND|EX_P (RE|
|00006130| 47 4e 4f 20 28 58 29 29 | 0d 2f 2a 20 4e 6f 6e 7a |GNO (X))|./* Nonz|
|00006140| 65 72 6f 20 69 66 20 58 | 20 69 73 20 61 20 68 61 |ero if X| is a ha|
|00006150| 72 64 20 72 65 67 20 74 | 68 61 74 20 63 61 6e 20 |rd reg t|hat can |
|00006160| 62 65 20 75 73 65 64 20 | 61 73 20 61 20 62 61 73 |be used |as a bas|
|00006170| 65 20 72 65 67 2e 20 20 | 2a 2f 0d 23 64 65 66 69 |e reg. |*/.#defi|
|00006180| 6e 65 20 52 45 47 5f 4f | 4b 5f 46 4f 52 5f 42 41 |ne REG_O|K_FOR_BA|
|00006190| 53 45 5f 50 28 58 29 20 | 52 45 47 4e 4f 5f 4f 4b |SE_P(X) |REGNO_OK|
|000061a0| 5f 46 4f 52 5f 42 41 53 | 45 5f 50 20 28 52 45 47 |_FOR_BAS|E_P (REG|
|000061b0| 4e 4f 20 28 58 29 29 0d | 23 64 65 66 69 6e 65 20 |NO (X)).|#define |
|000061c0| 52 45 47 5f 4f 4b 5f 46 | 4f 52 5f 53 54 52 52 45 |REG_OK_F|OR_STRRE|
|000061d0| 47 5f 50 28 58 29 20 5c | 0d 20 20 28 52 45 47 4e |G_P(X) \|. (REGN|
|000061e0| 4f 5f 4f 4b 5f 46 4f 52 | 5f 44 49 52 45 47 5f 50 |O_OK_FOR|_DIREG_P|
|000061f0| 20 28 52 45 47 4e 4f 20 | 28 58 29 29 20 7c 7c 20 | (REGNO |(X)) || |
|00006200| 52 45 47 4e 4f 5f 4f 4b | 5f 46 4f 52 5f 53 49 52 |REGNO_OK|_FOR_SIR|
|00006210| 45 47 5f 50 20 28 52 45 | 47 4e 4f 20 28 58 29 29 |EG_P (RE|GNO (X))|
|00006220| 29 0d 0d 23 65 6e 64 69 | 66 0d 0d 2f 2a 20 47 4f |)..#endi|f../* GO|
|00006230| 5f 49 46 5f 4c 45 47 49 | 54 49 4d 41 54 45 5f 41 |_IF_LEGI|TIMATE_A|
|00006240| 44 44 52 45 53 53 20 72 | 65 63 6f 67 6e 69 7a 65 |DDRESS r|ecognize|
|00006250| 73 20 61 6e 20 52 54 4c | 20 65 78 70 72 65 73 73 |s an RTL| express|
|00006260| 69 6f 6e 0d 20 20 20 74 | 68 61 74 20 69 73 20 61 |ion. t|hat is a|
|00006270| 20 76 61 6c 69 64 20 6d | 65 6d 6f 72 79 20 61 64 | valid m|emory ad|
|00006280| 64 72 65 73 73 20 66 6f | 72 20 61 6e 20 69 6e 73 |dress fo|r an ins|
|00006290| 74 72 75 63 74 69 6f 6e | 2e 0d 20 20 20 54 68 65 |truction|.. The|
|000062a0| 20 4d 4f 44 45 20 61 72 | 67 75 6d 65 6e 74 20 69 | MODE ar|gument i|
|000062b0| 73 20 74 68 65 20 6d 61 | 63 68 69 6e 65 20 6d 6f |s the ma|chine mo|
|000062c0| 64 65 20 66 6f 72 20 74 | 68 65 20 4d 45 4d 20 65 |de for t|he MEM e|
|000062d0| 78 70 72 65 73 73 69 6f | 6e 0d 20 20 20 74 68 61 |xpressio|n. tha|
|000062e0| 74 20 77 61 6e 74 73 20 | 74 6f 20 75 73 65 20 74 |t wants |to use t|
|000062f0| 68 69 73 20 61 64 64 72 | 65 73 73 2e 0d 0d 20 20 |his addr|ess... |
|00006300| 20 54 68 65 20 6f 74 68 | 65 72 20 6d 61 63 72 6f | The oth|er macro|
|00006310| 73 20 64 65 66 69 6e 65 | 64 20 68 65 72 65 20 61 |s define|d here a|
|00006320| 72 65 20 75 73 65 64 20 | 6f 6e 6c 79 20 69 6e 20 |re used |only in |
|00006330| 47 4f 5f 49 46 5f 4c 45 | 47 49 54 49 4d 41 54 45 |GO_IF_LE|GITIMATE|
|00006340| 5f 41 44 44 52 45 53 53 | 2c 0d 20 20 20 65 78 63 |_ADDRESS|,. exc|
|00006350| 65 70 74 20 66 6f 72 20 | 43 4f 4e 53 54 41 4e 54 |ept for |CONSTANT|
|00006360| 5f 41 44 44 52 45 53 53 | 5f 50 20 77 68 69 63 68 |_ADDRESS|_P which|
|00006370| 20 69 73 20 75 73 75 61 | 6c 6c 79 20 6d 61 63 68 | is usua|lly mach|
|00006380| 69 6e 65 2d 69 6e 64 65 | 70 65 6e 64 65 6e 74 2e |ine-inde|pendent.|
|00006390| 20 20 2a 2f 0d 0d 23 64 | 65 66 69 6e 65 20 4d 41 | */..#d|efine MA|
|000063a0| 58 5f 52 45 47 53 5f 50 | 45 52 5f 41 44 44 52 45 |X_REGS_P|ER_ADDRE|
|000063b0| 53 53 20 32 0d 0d 23 64 | 65 66 69 6e 65 20 43 4f |SS 2..#d|efine CO|
|000063c0| 4e 53 54 41 4e 54 5f 41 | 44 44 52 45 53 53 5f 50 |NSTANT_A|DDRESS_P|
|000063d0| 28 58 29 20 20 20 43 4f | 4e 53 54 41 4e 54 5f 50 |(X) CO|NSTANT_P|
|000063e0| 20 28 58 29 0d 0d 2f 2a | 20 4e 6f 6e 7a 65 72 6f | (X)../*| Nonzero|
|000063f0| 20 69 66 20 74 68 65 20 | 63 6f 6e 73 74 61 6e 74 | if the |constant|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.